Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-26-2006, 03:27 PM   #1
Registered: Jan 2006
Posts: 44

Rep: Reputation: 15
I want to create a new user for root

HI ,

I want to create a new user for root,how can i create a new root user with all the root previlages
Old 04-26-2006, 03:40 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,821
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
Before I answer let me say:


It is a really bad idea.

If you do it despite the advice then you just create a user with UID 0 like root. Users are really known by their UID number rather than their name. Anyone with UID 0 has root authority even if you give it a user name like billybob. Make sure the user appears AFTER the real root user in /etc/passwd.

If you're giving someone wide open access you might as well give them the root password itself as there will be no difference in their level of authority. Why waste time with an unnecessary account?

Rather than doing the above however it is much better to install and use sudo if you need to give root level access to another user. With sudo the user must login as themselves then must run the sudo command to execute whatever task you've allowed them to do as root. The benefits to using sudo:
1) You restrict users to ONLY those commands they need root access for instead of givng them wide open access.
2) It logs every time the user uses sudo so you'll know when billbob has blown you out of the water.
3) You can even use sudo to give users access to other global accounts (like Oracle) so that you can tell what individuals have done with that global account instead of guessing which one of the DBAs did a cat /dev/null >production.dbf.
Old 04-26-2006, 07:17 PM   #3
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
jlightner is 100% correct. There should only be one root account, and operating with root privs should only be done in specific, limited situations (such as installing new packages, recompiling the kernel, etc)


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
How to create another root user ? RipClaw Linux - Newbie 19 10-25-2005 10:08 AM
how to create user root accounts - SuSE 92 jdaniel Linux - Software 3 07-29-2005 12:35 PM
how to create root-like user/account? rsumbeling Linux - General 6 11-23-2004 01:38 PM
How can i create another user than root? BroinK Slackware - Installation 3 01-22-2004 02:20 PM
How can I create a user with the same privileges as the root ? Menestrel Linux - Newbie 3 11-19-2003 10:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:20 PM.

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