2
zadsfad@ubuntu

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

Should I reinstall Ubuntu?

0

1 Answer 1

2

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.

2
  • I solved it. This is answer.
    – Arthur
    Aug 15, 2017 at 6:27
  • I get user is currently used by process 1606 Aug 2, 2023 at 11:48

Not the answer you're looking for? Browse other questions tagged .