Code: Select all
adduser new_name

Code: Select all
usermod -d /home/newname -m -l newname oldnameCode: Select all
usermod -l newname oldnameCode: Select all
cat /etc/passwd | grep NAMECode: Select all
userdel NAMEThis should work but I cannot guaratee - I not that hardcored to change a user's name:D-u uid The numerical value of the user's ID. This value must be unique,
unless the -o option is used. The value must be non-negative.
Values between 0 and 99 are typically reserved for system
accounts. Any files which the user owns and which are located in
the directory tree rooted at the user's home directory will have
the file user ID changed automatically. Files outside of the
user's home directory must be altered manually.
Code: Select all
chown NEW_USER -R /home/NEW_USER