0

How do I change my logname?For e.g: xyz@ubuntu in the terminal how do I change xyz? I have tried this command

usermod -l *newname* -d /home/*newname* -m *oldname*

but that gave me an error user xyz is currently used by process PID

Command line solutions are appreciated.

Braiam
  • 69,112
user
  • 3
  • 3

1 Answers1

0

You need to not be logged in as the user whose name you are trying to change, while running the usermod command to change the user name. You will have to log out, log in as a different user (such as root), and run the command without your standard user being logged in.

dobey
  • 41,650