When installing applications, does it matter if I install software while logged in as a desktop user (by adding myself to the sudoers file), or is it better to login as administrator?
I've always logged in as admin to install apps.
Thanks.
Install software as admin or as a desktop user
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Install software as admin or as a desktop user
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
- Level 2
- Posts: 59
- Joined: Sat Nov 14, 2009 8:13 pm
Re: Install software as admin or as a desktop user
Definitely better to install while logged in as a desktop user. Too easy to really mess things up when logged in as root (been there, done that)
Re: Install software as admin or as a desktop user
If you want any configuration files set up in the user's directory, you should install and configure as the regular user. Actual installation will be done as sudo, of course, or by assigning the user the ability to run apt-get, synaptic or whatever download/install shell you wish.
Re: Install software as admin or as a desktop user
Perhaps I'm missing some nuance in the question but a regular user cannot install software in Linux. Only members of the sudo group can install software. If you add a regular user to the sudo group then as far as adding software ( among other things ) is concerned he has become an administrator.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Install software as admin or as a desktop user
Sorry, I made a mistake, I thought I had to add my name to the sudoers file to run Software Manager. I actually do not have to. I just have to enter my administrator password when I get prompted. Seems to install fine.
And that's where my question lies:
Are there any installation issues with installing software via #2 below? I'm wondering if I'm wasting my time logging out of my desktop user login and logging in as admin just to run Software Manager every time (#1).
#1. Login as admin, run software manager and install the app.
#2. Login as my regular desktop user, run software manager, enter the administrator password when prompted, and install the app.
And that's where my question lies:
Are there any installation issues with installing software via #2 below? I'm wondering if I'm wasting my time logging out of my desktop user login and logging in as admin just to run Software Manager every time (#1).
#1. Login as admin, run software manager and install the app.
#2. Login as my regular desktop user, run software manager, enter the administrator password when prompted, and install the app.
Re: Install software as admin or as a desktop user
Your option #1 may possibly give you problems if you get a package which wants to install only for one user instead of all users (the default for Linux).
Otherwise, they are essentially the same. #1 logs you into /root/ for installation, #2 logs you into /home/username/ and stays there when you sudo for installation.
Otherwise, they are essentially the same. #1 logs you into /root/ for installation, #2 logs you into /home/username/ and stays there when you sudo for installation.
Re: Install software as admin or as a desktop user
OK, I've got to ask the question:
If the Desktop user knows the Administrator user's password then what's the point of having a Desktop user? Make him/her another administrator.
I have a feeling that you are equating "Running as Administrator" in Linux with "Running as Administrator" in Windows or "Running as root" in Linux. It's two different things. For one thing there is no root account ( at least not one you can log into unless you went out of your way to enable it ) in a sudo based system like Mint.
In the context of this topic there is only one thing that separates Administrator from Desktop and that is membership in the sudo group. If you log into your system as an Administrator you are not running as root so if you want to install something from synaptic for example you will be prompted for your sudo password.
If the Desktop user knows the Administrator user's password then what's the point of having a Desktop user? Make him/her another administrator.
I have a feeling that you are equating "Running as Administrator" in Linux with "Running as Administrator" in Windows or "Running as root" in Linux. It's two different things. For one thing there is no root account ( at least not one you can log into unless you went out of your way to enable it ) in a sudo based system like Mint.
In the context of this topic there is only one thing that separates Administrator from Desktop and that is membership in the sudo group. If you log into your system as an Administrator you are not running as root so if you want to install something from synaptic for example you will be prompted for your sudo password.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: Install software as admin or as a desktop user
@webtarget, you might want to read https://help.ubuntu.com/community/RootSudo for a fully explanation.
[Edit] your original post and add [SOLVED] once your question is resolved.
“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
Re: Install software as admin or as a desktop user
Thanks altair4 and remoulder. I was equating administrator in linux as administrator in Windows.