Permissions – How do I change my username? – Ask Ubuntu

Log in using your username and password.
Set a password for the “root” account.
sudo passwd root
Log out.
exit
Log in using the “root” account and the password you have previously set.
Change the username and the home folder to the new name that you want.
usermod -l <newname> -d /home/<newname> -m <oldname>
Change the group name to the new name that you want.
groupmod -n <newgroup> <oldgroup>
Look the “root” account.
passwd -l root
Log out.
exit
press Ctrl+ALT+F7.
via permissions – How do I change my username? – Ask Ubuntu.

About the Author

Nizam Mohamed

Nizam Mohamed is a technical architect, specialising in cloud solutions, virtualization and end-user computing. Other technology interests include Enterprise Technologies, Cybersecurity and Enterprise Desktop Management.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You may also like these