Re: change home directory name

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: kitepilot@kitepilot.com
Date:  
To: Main PLUG discussion list
Subject: Re: change home directory name
The best way to safely accomplish this kind of tasks is by booting from a
live CD. At any rate, you better don't be logged-in anywhere as the user
that you are changing.

With that said, all you have to do is to rename the directory and change
it's ownership.

mv /old/path /new/path
chown -R username. /new/path
By leaving the 'username.' without group, 'chown' will default to the user's
main group.

You'll be able to infer those steps after reading the LFS book.
ET


Michael Havens writes:

> I just reinstalled my system with the new user name. How would I change to
> the old users directory? Would I rsync the old directory to the new
> directory because /etc passwd is configured to use the new directory? or
> is there something else I need to worry about. Hmmmmmmm.... come to think
> of it now it would probably be easy to change the directory name with a
> simple mv command.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss