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 08-08-2010, 01:44 PM   #1
LQ Newbie
Registered: Aug 2010
Posts: 20

Rep: Reputation: 1
Question Is it possible have another root?

I know that we normaly use the command sudo su to change to root.. but, If I want to promotes an user to have the same powers of the root is it possible?
Old 08-08-2010, 01:52 PM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
It is, but it is much easier to use sudo to do this. Edit the sudoers file with the command visudo.
Old 08-08-2010, 02:28 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
And in addition to the above: running a system as root is
a bad idea, and just giving any other user the same privileges
doesn't make the idea any better.

Old 08-08-2010, 03:08 PM   #4
Registered: Mar 2008
Posts: 19,217

Rep: Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926Reputation: 2926
You protect you system by using best practices. One of the best practices is to use a user with the lowest permission needed to perform job. su and sudo do let you access a user that has the root permissions. You can make a lower level user that has different permissions. Simply su to that user to perform the task it has permission for. For example, su drivemaint would be to maintain drives, drivemaint may only have permission to work on drive.

If you made an equal to root there would be no change or improvement to security. Root or an equal is the same thing.

Last edited by jefro; 08-08-2010 at 03:10 PM.
Old 08-08-2010, 03:13 PM   #5
Registered: Nov 2008
Location: In a dumpster, with my laptop.
Distribution: Fedora
Posts: 124

Rep: Reputation: 25
I agree with the above posters, but if you need someone to have almost-root level access (like a sysadmin), I would suggest you give them full-sudo privileges instead of root access. That way, you can audit their activities and keep control over their abilities much more easily.
Old 08-08-2010, 04:13 PM   #6
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
I'm not suggesting you do this, but I like the way FreeBSD sets things up with the toor account. You can avoid changing the shell of your root account, but you can log in as toor (with user ID 0) and you're root, but you can use whatever shell you like and set a password for the account. I was using bash as my user account shell, and so I set my toor password and used bash for my toor account.


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
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 12:20 AM
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 11:12 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:50 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