LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   changing users name (https://www.linuxquestions.org/questions/linux-software-2/changing-users-name-87254/)

bmike1 08-30-2003 02:46 AM

changing users name
 
Is there a magical way to change a users name?
I run Debian.

jalal 08-30-2003 03:16 AM

will "usermod -l <new-name>" do ?

bmike1 08-30-2003 04:38 AM

If that is the way it is done than it will do.

bmike1 08-30-2003 04:47 AM

I just read usermod's man pages and I'm not sure it will work. I mean aren't there other places your'username is used besides login and home directory? I mean what about groups.... or do you have to do '-G groups,names,seperated,only,by,a,comma'?

MasterC 08-30-2003 04:50 AM

That's the correct way, and it should work throughout regardless of what file you are looking in...

Name = UID

Most files use the UID anyway, so you can change your name to whatever, it's sorta like an alias.

For those that use the username (can't think of one off the top of my head) you may want to manually edit them. However, the groups file shouldn't...

Cool

bmike1 08-30-2003 05:02 AM

Thank you sir 'C'!

MasterC 08-30-2003 03:17 PM

You're welcome, I just clarified though, jalal is the one who deserves the Thanks ;)

Cool


All times are GMT -5. The time now is 11:58 PM.