change my /home/oldname to /home/newname

Mihamina Rakotomandimby mihamina at gulfsat.mg
Thu May 20 18:02:09 UTC 2010


> 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

>> - 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.

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




More information about the ubuntu-users mailing list