Saturday, February 09, 2008

Automounting a User’s Home Directory

A couple colleagues of mine were trying to execute a program on the server that required a special initialization environment, which was called from the /home/loginuser path. The login, loginuser, was not part of the server’s name service domain. It was a local account on a remote workstation. After a little discussion, they added this syntax to the /etc/auto_home file. Here is a run to illustrate the aforementioned.

# vi /etc/auto_home
# Home directory map for automounter
#
loginuser esoft:/export/home/USERS/&
#
* server:/export/home/USERS/&
#
+auto_home
:wq!

# automount -v
automount: /net mounted
automount: /home mounted
automount: /xfn mounted
automount: /export/opt mounted
automount: no unmounts

# cd /home/loginuser
# ls -a
. .. .cshrc myblog esoftfile topblog

No comments: