The man page for usermod says:
Quote:
-l, --login NEW_LOGIN
The name of the user will be changed from LOGIN to NEW_LOGIN.
Nothing else is changed. In particular, the user's home directory
name should probably be changed manually to reflect the new login
name.
|
So, after running that command simply re-name the directory in /home:
Code:
su ## to become root
cd /home
mv oldname newname