Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following in my /etc/auto.master

/project   yp auto.project   -soft,intr,nosuid
/home      yp auto.home      -soft,intr,nosuid
/nobackup  yp auto.nobackup  -soft,intr,nosuid

When a user logs in, his home directory is mounted using NIS.

What I would like, is that the users /project and /nobackup are also mounted when he logs in.

Does anyone knows how to do that?

share|improve this question
Should be done with the mount module of PAM (pam_mount). – mailq Nov 4 '11 at 16:00
up vote 1 down vote accepted

The purpose of the automounter, is basically to only mount things when needed. If the maps are correct all the user would have to do is to cd to the area and it will automatically mount. Once not needed (no users needing the mount after a specified period of time), it will unmount the disk.

The same would happen for the /home area as well if the login shell user cd's to somewhere else other than his home directory. For you see, the /home directory is mounted due to having to cd to the specified home directory as part of the login.

I'm curious about why you would want what you specified?

If you want it to temporarily mount, you could cd to the necessary directories in the profiles but again without use, they will timeout and become unmounted.

Can you shed more light on your project and objectives?

share|improve this answer
Ahh. So they only show up when I cd into them. Then it works =) – Sandra Nov 4 '11 at 16:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.