change my /home/oldname to /home/newname
Nils Kassube
kassube at gmx.net
Thu May 20 19:54:56 UTC 2010
Mihamina Rakotomandimby wrote:
> > Nils Kassube <kassube at gmx.net> :
> >> - Create the new user (the way you want)
> >>
> >> - copy (with cp and the right options). I would use:
> >> $ sudo mv /home/new-user /home/new-user-home
> >> $ sudo cp -ar /home/current-user /home/new-user
> >
> >You forgot to make the new user the owner of the new home:
> When using command-line 'adduser' it's automatic
> When using the GUI tool, it's also automatic
Right, but after creating the new user you renamed the home/new-user to
/home/new-user-home. After that you copied /home/current-user to
/home/new-user including ownership (-a) of the old user, i.e. the old
user is owner of the new user's home.
> >> - log out
> >> - log in as the new user
> >
> >And then you will probably find out that many applications use the
> >old home when they use an absolute path e.g. in their config files.
>
> Bad software, change software.
:)
Nils
More information about the ubuntu-users
mailing list