LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2017, 04:46 PM   #1
jazzo
Member
 
Registered: Jul 2012
Posts: 270

Rep: Reputation: Disabled
Is it OK to use the admin account for daily use?


Hi guys, when I set up Ubuntu, the first account I created was an admin account. Is it OK to use this on a daily basis for ordinary tasks or should I create a standard account and use that? I ask because if I use the admin account it seems kind of OK because it still asks me for the password when I install software etc so, it seems to me, I'm admin all right but it stills require me to authenticate as admin, so not so bad. What's your opinion?
 
Old 10-22-2017, 05:09 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware, Ubuntu
Posts: 10,203

Rep: Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407Reputation: 2407
The primary user created during the install has root/admin rights by default but needs to authenticate to do system actions. You would need to preface any command with sudo and enter your primary user password to authenticat, that's the design. The link below is the Ubuntu documentation on the subject, much more detailed.

https://help.ubuntu.com/community/RootSudo
 
1 members found this post helpful.
Old 10-22-2017, 05:11 PM   #3
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Wink Just 'priv escl'; admin isn't a 'username': it's just a sudo PRIV (I think)

Quote:
Is it OK to use this on a daily basis for ordinary tasks or
should I create a standard account and use that?
Yes-ok-use == No-create-another... That is the way Ubu designed it (I think).

Btw, don't confuse an 'account' entry in /etc/passwd like joe/user/jazzo/...
Which was that 1st account you created,
thus receiving 'admin' privlidges (something in /etc/{sudoers,group} I think),
With an 'account' == entry in /etc/passwd (,shadow,group,...) of literally "admin"
Which likely does NOT exist!!! (better LQguru explanations welcome here)

Thus, I say: there's (usually) no such thing as an "admin account"!!!

When you sudo, you escalate your plain-user privlidges to 'root'-level.
https://www.safaribooksonline.com/li...8/ch38s04.html

And a lqGuru did indeed 'ninja' my sloooow ramblings

Last edited by !!!; 10-22-2017 at 05:52 PM.
 
Old 10-22-2017, 06:54 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
The default user account created during the install process on Ubuntu has sudoers privs. It's OK to use this account for normal use but if you want to be even more secure, at the expense of a little inconvenience, you can create another "normal" user without sudo privs for normal use. Problem then is you will have to log out and then log in with your "admin" user to install applications, perform maintenance, etc. More secure but you may find it inconvenient.
 
Old 10-22-2017, 10:36 PM   #5
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Good idea #4. But login (command: see man) or su - firstuser from normal may be possible&simpler than GUI logout.
 
Old 10-22-2017, 10:56 PM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Depending on the distro, you can't su unless you are wheel so that may be a security concern.
 
Old 10-22-2017, 11:46 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,086
Blog Entries: 28

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
This article from the Ubuntu Wiki may help: https://help.ubuntu.com/community/RootSudo

I have never understood Ubuntu's creepy sudo fetish (and I do assert that "fetish" is an appropriate term). It's something peculiar to the *buntus and to hardly anyone else. It's quite easy to overcome:

Code:
sudo su
passwd
enter new UNIX password:
Retype new UNIX password:
Once you have entered a known password for root, you can use the su command.

Last edited by frankbell; 10-23-2017 at 06:07 PM.
 
1 members found this post helpful.
Old 10-24-2017, 03:33 PM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,406
Blog Entries: 8

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Yeah, if only Ubuntu never did that weird sudo fetish thing at the start.

Oh well.

The most helpful advice for the typical Ubuntu user, though, is to just go with the flow and use the first user for everyday use. For better or worse, that's how Ubuntu is designed to be used, and that's what's reflected in all Ubuntu documentation, help, how-tos and so on.

If you really want, you can add a proper password to the root account, but I just use "sudo su -" in *buntu rather than "su -" (which is what I do in everything else, such as Debian).
 
Old 10-24-2017, 04:13 PM   #9
jazzo
Member
 
Registered: Jul 2012
Posts: 270

Original Poster
Rep: Reputation: Disabled
great thanks guys for all the useful advice!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between admin account and normal account dunnery Linux - Newbie 4 02-05-2015 10:00 PM
[SOLVED] Copying files in an admin account from an account with insufficient permissions? nobuntu Linux - General 14 07-14-2012 03:14 AM
Erased old account for new one; forgot to give admin priv to new account. RHLinuxGUY Ubuntu 3 08-10-2008 08:56 PM
Guide to daily admin taks newbe45 Linux - General 1 06-03-2007 04:26 AM
How do I send daily clamav scan logs to my work e-mail account rwtreke SUSE / openSUSE 3 05-20-2005 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration