How can I change the username

7,484

first, make sure you have root login access, from a root shell prompt, type

usermod -l **new_username** -m -d /home/**new_username** **current_username**

then exit and re-login, and you'll be fine.

Share:
7,484

Related videos on Youtube

Arthur
Author by

Arthur

Sever Developer.

Updated on September 18, 2022

Comments

  • Arthur
    Arthur over 1 year
    zadsfad@ubuntu
    

    How can I change the username (zadsfad)? If I change the host name, the 'ubuntu' section is changed.

    Should I reinstall Ubuntu?

  • Arthur
    Arthur over 6 years
    I solved it. This is answer.