Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ln /home

Status
Not open for further replies.

hpoko

IS-IT--Management
Jan 24, 2003
4
US
I have a created a mount point of /export/home and there is /home. I would like to have the users home dir in /export/home but have it appear to be /home. I want to preserve space on the / partition . I tried to do a ln -s /export/home /home. This does not seem to work and now I cannot rm the link. Does any one have a suggestion on how to do this and how to get rid of the symlink I created.

Thanks
 
I think you'll want to login as root, or some user who isn't $HOME=/home/*. Then move the original directory, something like:
cd /
mv home home2
then create your link.
ln -s /export/home
then move or copy the original files to /export.

You'll still need to go through your users and fix their home directories, like:
usermod -d /export/home joeuser

Also, get a second opinion before you start. I might have missed something.
 
Normally the home directories are mounted using the automount. In /etc/auto_master you have an entry :
/home auto_home -nobrowse
In the /etc/auto_home file you have an entry:
+auto_home
You create the users with /export/home/<user-name>
as their home directory and it is mounted on /home
 
Comment out the entry in auto_master that Mike described and then type automount -v to wake up the automount daemon. Then you should be able to move, remove, link or do whatever to the /home directory.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top