I would recommend not attempting to change a user's name.
This is generally wrought with problems when the user's name
is statically referenced in configuration files in the form of the user's home directory,
/home/<username>. These are almost never written in a generic way so
it's usually best to just create a new username and then migrate the user's
files and data over to the new account.
Quotehttps://unix.stackexchange.com/questions/98461/proper-way-of-changing-username-in-ubuntu-or-any-linux
Quote from: way12go on October 10, 2014, 08:31:27 AM
I would recommend not attempting to change a user's name.
This is generally wrought with problems when the user's name
is statically referenced in configuration files in the form of the user's home directory,
/home/<username>. These are almost never written in a generic way so
it's usually best to just create a new username and then migrate the user's
files and data over to the new account.