PDA

View Full Version : [ubuntu] How to change login name?



Inquisitorthemad
December 8th, 2008, 08:43 PM
I foolishly allowed ubuntu to default to using my real name as my login name. I now want to change this so I don't go by my real name in Wesnoth servers. What I want to know is HOW DO I DO IT?!

I searched Google first thing. One thread recommended System->Administration->Users and Groups. It allowed me to change everything EXCEPT MY USERNAME. I saw another thread recommending usermod in the terminal. THIS DIDN'T WORK.

Please. How do I do it?!

lovelyvik293
December 8th, 2008, 08:46 PM
I think that you can't change a user's name.You can make a new user and then delete the user you don't want.

gettinoriginal
December 8th, 2008, 08:51 PM
Try this: :p

http://sudan.ubuntuforums.com/showthread.php?t=945461

banerjeerupak
December 8th, 2008, 11:40 PM
create a new user by going to System -> Administrator -> Users and Groups

Give this user the name you want on the wesnoth servers.

The Cog
December 9th, 2008, 12:28 AM
I think the user's name is only stored in 3 files - /etc/password, /etc/shadow and /etc/group. You could use search and replace on these 3 files. Back them up first!!! Oh, and rename your /home/? directory too.

I did it once. But then discovered that evolution saves the full path including the username in lots of its config files. It took me ages to track down and replace every reference to the old directory. Most other applications aren't that brain-dead though.