Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

making a second root user

Status
Not open for further replies.

call

Technical User
Oct 31, 2000
127
0
0
US
Is their a way to creat a user who can kill processor
by su to the user name instead of su to root.

Work wants someone who can kill processor and I dont want to give them root password.
thank you
 
Check out the sudo command - this lets you give "root" permission to individuals for individual commands: ie you can list those who can kill users, and a different group who can, for example, mount filesystems, etc.

With suitable scripts, you can even restrict which arguments can be passed to which commands.

You can download from
 
What jflong said.....

Just vi /etc/passwd and copy roots entry to a new line and then change the home directory and login name. Then use ' passwd <new username> ' from the command line to set the password for the new pseudo root user. Works like a charm.

However be VERY careful editing /etc/passwd as any mistakes to other users could hose your system faster than rm -r *

 
Hello

Go with fishiface's suggestion. You will be able to manage access much better with this. Also your security auditors (if you use any) will not be happy with multiple UID 0 users. Having said that, that is the correct answer to the question :)

Thanks

Steven
 
If the user has access to shell out to the command level, have them kill their own process. &quot;Thy who makes a process, can die by their process&quot;. Yah i know, not vary Shakespear like, but it works. Sometimes, the end user has to learn to stop making problems for the rest of the IT world and insignificant phone calls. Maybe if they see what we go through, they will not press Ctrl+C in their applications. <grin>
 
Thanks for the info everybody, Im glad to see people out their who are willing to help other.

Thanks alot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top