LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Multiple root passwords (https://www.linuxquestions.org/questions/linux-security-4/multiple-root-passwords-340771/)

xp1o1d5 07-06-2005 08:55 PM

Multiple root passwords
 
I have a question that I dont even know if its possible, but I think it is. So here it goes.

1. I wont root to have 2 password (so you can log in useing 2 different passwords.)

2. It needs to reconize who password it is by a preset name. (If someone logs into root useing password1 it will recongize that password1 belongs to user1. And then someone else logs into root useing password2 it will reconize that user2 logged in.)

3. WHen someone logs in to root i wont it to take the time (of login) and apply it to a seperate file.

4. By the preset passwords I wont it to take the name and apply it to the same file as the time. So if I wont I can check who logged into root and when.

5. And if possible when the user logs out.

I hope I didnt just waste my time. But I think I read somewhere a while back that this could be done.

tkedwards 07-06-2005 09:27 PM

First off the multiple passwords thing is impossible, a user can only have one valid password, end of story.

From your post I'm guessing that you have multiple administrators on one machine but you don't want them using the same account because then you have no way of tracking who did what right?

The way to do this is with sudo. Simply give the username of each user who needs root priveleges those priveleges using sudo:
# visudo
Code:

# User privilege specification
username ALL=(ALL) ALL


xp1o1d5 07-06-2005 10:00 PM

Quote:

From your post I'm guessing that you have multiple administrators on one machine but you don't want them using the same account because then you have no way of tracking who did what right?
Thats right. Thanks for the reply like I said I wasnt sure if it could be dont or not.

Thats the way ima end up doing it.

Code:

# User privilege specification
username ALL=(ALL) ALL



All times are GMT -5. The time now is 06:37 AM.