This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes A System Admin having a user name other than root Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "A System Admin having a user name other than root" Watch "A System Admin having a user name other than root" New topic
Author

A System Admin having a user name other than root

V Chauhan
Ranch Hand

Joined: Nov 15, 2002
Posts: 70
Hi,

Is the user name "root" constant? I mean can we change the user name for the root user ( having user id 0) to something else and it can still have the root privilage?

Similarly is it possible to add a new user and give the user all the privilages the root has?


Thanks in advance for your help/suggestions.
Basu.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24189
    
  34

You actually can have multiple accounts with the same userid. What some people will do is have a root account with a password known to only one person, and then create other id-0 accounts (sometimes called "Z accounts") for assistant admins. The nice thing about this is that you can delete one of these accounts, therefore cutting off access to someone (of course, this only works if everybody's friendly, because while they had access, they might have put in a trapdoor.)

But it's better to manage privileges with finer control. You can use the "sudo" facility to give individual accounts the ability to run any desired range of commands as root. You can do this using groups; traditionally a group named "wheel" is given the ability to run any command as root.

Try "man sudoers" (or "man sudo", if that fails) to learn more.


[Jess in Action][AskingGoodQuestions]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: A System Admin having a user name other than root
 
It's not a secret anymore!