2 roots in Linux.... Possible?

mikeshn

Senior member
Oct 9, 2001
367
0
0
Does it allow in Linux to have two roots? I mean 2 admin or administrators.

Thanks a lot
 

jdini76

Platinum Member
Mar 16, 2001
2,468
0
0
I know it can be done in solaris, But it is not recomended. Just vi the /etc/passwd file and under the name you want to change to root Privileges, change the group number to 1. this should give a given login root Privileges.


edit: should be passwd file not shadow
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Change the user ID to 0. That will give you root privledges, but this is stupid. Just use sudo. What would even give you such an idea?!
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< what is sudo? >>



Its like the win2k run-as thingy. I can run things as root without logging in as root, without setting the program setuid, and without having to know the root password.
 

Suppafly

Senior member
Jan 11, 2001
349
0
0
normally, you just have one root account and then you would use 'su' to get root priveledges when you need them.
 

jhu

Lifer
Oct 10, 1999
11,918
9
81
what's the difference between sudo and su? i don't have sudo on my system
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0


<< what's the difference between sudo and su? i don't have sudo on my system >>



With su you basically log in as root (requires root password). With sudo I use my password to do whichever tasks I am allowed to do (as setup by the /etc/sudoers file) as the user it specifies. I basically type sudo command, enter my password when it asks, and I run that command as root.
 

jdini76

Platinum Member
Mar 16, 2001
2,468
0
0
I am not sure what sudo is, but SU is "Switch User" Type $su - "username" (without ") and then it will prompt for password. you can also do this for root. just type $su <cr> and it will ask for the root password. Syntax may be off, bare with me.
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
Yap sudo is the way to go... if you don't have check your install CD it should be there...

And n0c thanks for that tip. I only started using sudo because of you mentioned it on some
other thread...


Off course if for some strange, completly grey reason you need to have two users with admin
rights you can always add a new user to the root group in /etc/groups I think it's a better solution
than giving him uid 0, of course there are some things that this user won't be allowed to do but
it's an elegant solution.
 

FUBAR

Senior member
Oct 11, 1999
618
0
0
another vote for sudoing... even if you give it full access, it makes a log of commands run. That way you can track stupidity to the source.
 

FUBAR

Senior member
Oct 11, 1999
618
0
0
Compiling the source of sudo is very cool indeed. By default (at least in redhat), i think it sets the alert level to... ermmm... can't remember the level but it's one of the many that go to messages. You can change that to whataver (i like local3) and then set up syslog to pump it into it's own log... very nice for keeping your logs de-cluttered.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |