Click to See Complete Forum and Search --> : User names...


Joshie the CK
03-01-2001, 04:08 PM
Is it possible to change someone's username?
Edit the /etc/passwd and group file, and change their directory name?

Haven't really been able to find this out anywhere...

thedexman
03-01-2001, 11:44 PM
Yes, you can just change their name and home directory in the /etc/passwd. If you're using shadow passwords you would then run pwconv. You would also need to make sure the ownership of the user's home directory is set properly (man chown). I always keep a back up copy of my /etc/passwd when I mess with it in case I screw something up.

Joshie the CK
03-02-2001, 10:20 AM
Ah! That must be why it didn't work! I forgot to change the ownership of their home directory!

Thanks man!