LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Add to path of all users home Dir. (https://www.linuxquestions.org/questions/linux-server-73/add-to-path-of-all-users-home-dir-607709/)

abovenbeyond 12-18-2007 05:20 PM

Add to path of all users home Dir.
 
Hello,
Is this easily possible via a command...

I have about 100 user accounts that currently have a home dir like this example...

/some/thing/like/this

I want to make it all...

/more/some/thing/like/this

This has come about during a new server upgrade and I would like to have a different path for the home directories. If there is an easy way besides doing usermod -d blah blah I would love to hear it.

I am simply adding /home/ in the front off all the current paths.

Thank you.

jailbait 12-18-2007 05:27 PM

You can probably do it with a symbolic link:

ln -s /some /home/some

---------------------------
Steve Stites


All times are GMT -5. The time now is 06:27 AM.