User Account: change name
Bob Nielsen
nielsen at oz.net
Thu May 26 18:21:21 UTC 2005
On Thu, 2005-05-26 at 20:02 +0200, René L. Reingard wrote:
> Am Thu, 26 May 2005 19:43:53 +0200 schrieb Dennis Kaarsemaker
> <dennis at kaarsemaker.net>:
>
> > On do, 2005-05-26 at 19:30 +0200, René L. Reingard wrote:
> >> > You will need to chown -R new_user:new_user home_folder
> >>
> >> sorry for questioning, what means that?
> >
> > It makes the new user owner of the files, that's neccessary :)
>
>
> hoho, i do not wanna turn that into a rough slide.
> i will specify that on you (all) can check it first.
>
> lets say the new users name is Max.
>
> 1. creating the new user and password
> 2. rename (or delete) the users home directory which got created already
> 3. rename the old users home directory into Max
> 4. being in an others user Gnome i run the shell
> 5. i do command: sudo chown Max:Max /home/Max
That should be: sudo chown -R max.max /home/max, which will change
files in subdirectories.
You could also edit /etc/password, /etc/shadow and /etc/groups to change
the name, keeping the UID and GID. Then you wouldn't need to chown.
> 6. finish
You should probably deluser the old name and rename /var/mail/<olduser>
to the new name if there is any mail there.
> Please help on that
> René
>
> --
> Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/m2/
>
More information about the ubuntu-users
mailing list