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.
cat /etc/passwd
.braiam@braiam-pc
becomesbraiam
?xyz
inxyz@ubuntu
, @Braiam. It might also be simpler to create a new user withuseradd <newname>
, and move the user home directory withmv /home/<oldname> /home/<newname>
, though it might not work due to user specific files.