Visit Jeremy's Blog.
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 02-02-2007, 01:44 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 15

Rep: Reputation: 0
Creating Root Equivalent Accounts

Hello folks, I have recently been tasked to support a couple of linux boxes (RHEL 3) and although I have worked with Linux and Unix before (mostly in a user/operator capacity) I am still mostly a Windows sysadmin.
I have a question regarding the root account. Now I know that you should never run it in a session and to use SU or SUDO for performing administrative tasks, what I wanted to know is what are the ramifications (besides being root equivalent) of creating a "root equivalent" account.
I have created a secondary account using useradd -o (on a test box) in order to force the new acount to use a UID of 0 (root account) and I am able to logon with it fine and provides me with the root prompt.

Since this is now a root equivalent account,
1 - would it be easier to use this account for logons for admin tasks as opposed to having to logon as a user and then run SU
2 - easier to audit an account like this assuming there are going to be multiple admins on this server (don't ask)

The end result I am looking for is to have a few admins who will be on the box and I want to avoid them using the root account itself for daily sysadmin tasks. What would be the best way to accomplish the

Your thoughts on this would be appreciated. Thank you.
Old 02-02-2007, 01:47 PM   #2
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 9 (stretch)
Posts: 3,358

Rep: Reputation: 126Reputation: 126
"The end result I am looking for is to have a few admins who will be on the box and I want to avoid them using the root account itself for daily sysadmin tasks."

Root by any other name is still Root.
Old 02-02-2007, 02:39 PM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
What you have done is create an alias for the root account. Whatever apps you run and other things you do on the system will all be done as root because your user has a UID of 0. Where you need multiple admins for a system, create an admin group and then use sudo to give the admin group privileges to run certain commands.

Last edited by reddazz; 02-02-2007 at 02:40 PM.
Old 02-02-2007, 02:43 PM   #4
LQ Newbie
Registered: Dec 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks reddazz, that makes sense since you are correct in regards to aliasing root by using the same uid.


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
Creating email accounts/domains etc... Swakoo Linux - Newbie 2 12-09-2005 06:59 AM
trouble creating user accounts krsnachaitanya Linux - Networking 2 02-12-2005 10:01 AM
Creating User Accounts Winux Linux - Newbie 6 04-01-2003 05:35 AM
Creating user accounts Ricardo Linux - Newbie 3 05-19-2002 03:24 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:05 AM.

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