Rename a user

Lars Eighner eighner at io.com
Sat Mar 13 01:06:34 PST 2004


On Sat, 13 Mar 2004, Nguyen Huu Hoa wrote:

> Thanks,
> But can I rename root user?

I would advise you not to change root's user name (which is "root"),
but there is no reason you cannot edit root's full name which is
Charlie.  If you want another login for root, see how the entry
for toor is done.  Root should not be doing anything public,
such as sending e-mail, so root's name should be immaterial.

Any user with UID 0 should be able to do what root does - or actually
any name with UID 0 is just an alias of root.  For example, if you
login as toor, whoami will return "root" and if you cd, you will go
to /root.

-- 
Lars Eighner
eighner at io.com -finger for geek code-
http://www.io.com/~eighner/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266



More information about the freebsd-questions mailing list