You cannot be logged in as the current user you are renaming, so do one of the following…
sudo passwd rootlogoutlogoutsudo su - to elevateReplace oldname with your old username and newname with the new username…
usermod -l **newname oldname**usermod -d /home/**newname** -m **newname**groupmod -n **newname oldname**chfn -f "**FULL NAME**" **newname**
logoutDisable root account (if you enabled it):
sudo passwd -d rootsudo passwd -l root