Install software as admin or as a desktop user

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
webtarget
Level 3
Level 3
Posts: 167
Joined: Sat Mar 24, 2012 10:20 am

Install software as admin or as a desktop user

Post by webtarget »

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.
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.
BoscoBearbank
Level 2
Level 2
Posts: 59
Joined: Sat Nov 14, 2009 8:13 pm

Re: Install software as admin or as a desktop user

Post by BoscoBearbank »

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)
cwsnyder

Re: Install software as admin or as a desktop user

Post by cwsnyder »

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.
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

Re: Install software as admin or as a desktop user

Post by altair4 »

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.
webtarget
Level 3
Level 3
Posts: 167
Joined: Sat Mar 24, 2012 10:20 am

Re: Install software as admin or as a desktop user

Post by webtarget »

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.
cwsnyder

Re: Install software as admin or as a desktop user

Post by cwsnyder »

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.
altair4
Level 20
Level 20
Posts: 11419
Joined: Tue Feb 03, 2009 10:27 am

Re: Install software as admin or as a desktop user

Post by altair4 »

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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
remoulder
Level 17
Level 17
Posts: 7621
Joined: Fri May 09, 2008 1:14 pm

Re: Install software as admin or as a desktop user

Post by remoulder »

@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.
webtarget
Level 3
Level 3
Posts: 167
Joined: Sat Mar 24, 2012 10:20 am

Re: Install software as admin or as a desktop user

Post by webtarget »

Thanks altair4 and remoulder. I was equating administrator in linux as administrator in Windows.
Locked

Return to “Software & Applications”