PDA

View Full Version : [ubuntu] Need help changing my user name on my computer login


ameuse
May 22nd, 2008, 07:08 PM
Hi there!

I would love to be able to change the user name to my computer for when I login - I was able to figure out how to change the password but no luck on the name - the tech who installed Ubuntu for me used my name - only misspelled so it's a bit annoying to see it on the screen all the time not to mention having to type it in that way everytime I log in - If anyone can help that would be great! - Thank you -Aaron.

amingv
May 22nd, 2008, 07:15 PM
sudo usermod -l <new_login> <old_login>

From man usermod:

-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.