How to rename a user in Linux?
Firstly, you need to have a account with root privileges (You cannot change the account name if you have this user currently logged in)
To rename a user, do the following steps:
1. Rename user
# sudo usermod -l new_user -d /home/new_user -m old_user
2. Update group (Usually the same as user name)
# sudo groupmod -n new_user old_user