LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Mainly out of curiousity, is it possible to change the username of the root account? (https://www.linuxquestions.org/questions/debian-26/mainly-out-of-curiousity-is-it-possible-to-change-the-username-of-the-root-account-344247/)

microsoft/linux 07-18-2005 07:53 AM

Mainly out of curiousity, is it possible to change the username of the root account?
 
Again, is it possible to change the name of the root account? I don't necesarilly want to do this, it is mainly just a curiousity. THoughts?

saman007uk 07-18-2005 08:41 AM

Yes, just change /etc/passwd, /etc/group and /etc/shadow.

It's not recommended though, as this may cause big problems. You can also create another user with GID and UID set to 0.

To get root access, use of su or sudoers is recommended.

microsoft/linux 07-19-2005 10:37 AM

ok, thanks, I got sudoers set up. I was just curious.

celejar 07-21-2005 03:11 PM

__Any__ user account on the machine with UID of 0 has root privs; the machine doesn't care about the user name. There can be multiple names with UIDs of 0 and they will all be root.


All times are GMT -5. The time now is 09:58 PM.