change my /home/oldname to /home/newname
Karl Larsen
klarsen1 at gmail.com
Thu May 20 18:12:11 UTC 2010
On 05/20/2010 12:02 PM, 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
>
>
>>> - 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.
>
>
This question is a bad one :-(
Of course, anyone who understands Linux will know if you move a
HOME to another directory it WILL FAIL! I recall the original question
was how to change the name and password of an old user. This can be
done, without making a new user. This is the best solution :-)
73 Karl
--
Karl F. Larsen, AKA K5DI
Linux User
#450462 http://counter.li.org.
Key ID = 3951B48D
More information about the ubuntu-users
mailing list