Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
/root is root's home directory, which is completely seperate from the root user. You can change that setting in the /etc/passwd file (but you'll need to move the directory itself by hand).
I don't see why you couldn't change the root username there as well; the UID and GID have both got to be 0 for a superuser, and various programs that change user (like su or shutdown) will stop working if they use the username rather than the UID (this would constitute a bug in such programs but not one that would get tested for very often).
root is a very standard name for a UNIX superuser — it stems from the idea of a hierarchy of users with inherited permissions; an idea that isn't used.
Originally posted by bjmurph Is it possible to change the super user name?
I don't want to change it to "1337h4x0r", just "admin" or something. It just seems wrong to me to have a user called "root".
If this is possible, then is it posible to change "/root" to some other name? (no symlinkage)
Why? Its been like this well, since, Unix was created. Why don't you setup another user with sudo rights? Then you won't ever need to login as root, well very rarely.
Security thru obscurity just doesn't work and there's no real valid reason you should change root's name.
Originally posted by me It just seems wrong to me to have a user called "root".
I am referring to the local usage of the word root, ie Synonym of sexual intercourse(noun and verb), and hence rooted, rooting, get a root etc. To me that's what root means. If the super user on your system was called f**k, would that make you particularly happy? So my "real valid reason" is just that I would prefer that the super user be called something else.
I'm not trying to offend any Unix aficionados, or get extra security by making would be attackers guess the name (as I said, I would call it admin), I just don't like "root" being a username.
It would seem that while renaming root is trivial (just edit the /etc/passwd, and if you have one, the /etc/shadow), programs will then hate you.
I renamed "root" to "admin", and that was ok, I could log in, do superuser things. The problem occured when I wanted to be a nomal user, and either su in a terminal, or run something like kde's "file manager (super user mode)", it refused to do anything. su returned an error along the lines of cannot find user root, and the other things I think might use su. So it appears that renaming root is a no go if you want things to still work.
Originally posted by bjmurph So it appears that renaming root is a no go if you want things to still work.
Exactly like I said.. "there's no real valid reason you should change root's name" along with the security bit for all those other poeple who have asked thinking it would beef up their security on their system.
Want a user named admin, create one. Give him sudo access, done, everything else is happy.
Originally posted by bjmurph su in a terminal, or run something like kde's "file manager (super user mode)", it refused to do anything. su returned an error along the lines of cannot find user root, and the other things I think might use su.
su is the Switch User command. If you don't specify a username, the default is root, rather than the name of UID 0. You could always do
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.