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
. – Wilf Dec 08 '13 at 15:04braiam@braiam-pc
becomesbraiam
? – Braiam Dec 08 '13 at 15:08xyz
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. – Wilf Dec 08 '13 at 15:10