Rename User account

usermod -l modifies the login name, -g modifies the primary group and -m -d moves the users home directory.

usermod -l newname pi
usermod -g newgroup pi
usermod -m -d /home/newname newname
 
linux/renameuser.txt · Last modified: 28/08/2021 13:36 by andrew