LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-08-2010, 02:44 PM   #1
professorgenival
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, 02:52 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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, 03:28 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.



Cheers,
Tink
 
Old 08-08-2010, 04:08 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,684

Rep: Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260Reputation: 2260
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 04:10 PM.
 
Old 08-08-2010, 04:13 PM   #5
zootboy
Member
 
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, 05:13 PM   #6
pr_deltoid
Member
 
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.
 
  


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
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 01:20 AM
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 05: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 06:15 PM
On NFS, non-root users can move/rename files belonging to root. Stuart Morrow Linux - Server 2 11-05-2007 12:12 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM


All times are GMT -5. The time now is 02:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration