change my /home/oldname to /home/newname

Mihamina Rakotomandimby mihamina at gulfsat.mg
Thu May 20 14:38:11 UTC 2010


> Lucian Goron <luciangoron at gmail.com> :
>I read some threads on this topic but none of them worked
>and the last one almost broke my system, thanks for backups
>
>How can I change / rename my username ?
>but without breaking anything.

- 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
- log out
- log in as the new user

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                     +261 3456 000 19




More information about the ubuntu-users mailing list