I have a user named hedgehog
and I want him to be named squirrel
, but I don't want to change his numeric user ID.
How can I accomplish this?
linuxunixuser-accountsuser-management
I have a user named hedgehog
and I want him to be named squirrel
, but I don't want to change his numeric user ID.
How can I accomplish this?
Best Answer
Under Linux, the
usermod
command changes user names. It modifies the system account files to reflect the changes that are specified on the command line.To change just the username:
To change the username and home directory name:
You may also want to change the name of the group associated with the user: