Changing the username

Marcelo Magno T Sales marcelo.sales at sefaz.pe.gov.br
Thu Apr 20 20:07:28 UTC 2006


Em Quinta 20 Abril 2006 15:20, Gordon Messmer escreveu:
> Ali Helmy wrote:
> > Hey mates,
> >
> > How do I change my current user name, without risk of messing up
> > file access and such?
>
> Your access to files is stored by your numeric UID in the
> filesystem. Changing your username shouldn't risk messing up file
> access.  You will need to fix all of your secondary group
> memberships, if you have any.

For that, do a search and replace in /etc/group.
Another way to change the login name is the usermod command.

[]'s
Marcelo




More information about the users mailing list