0

At my university we had autofs set up so that you could:

cd /nfs/fqdn.of.some.nfs.server/share

and it would automount the nfs server+share as if root had done:

mount -t nfs fqdn.of.some.nfs.server:share /nfs/fqdn.of.some.nfs.server/share

It was extremely useful because you could then simply symlink to a dir in /nfs/fqdn.of.some.nfs.server/share/sub/dir.

I am thinking it must be the simplest autofs configuration, but I cannot find that config anywhere.

How do I configure autofs to do that?

2
0

In /etc/auto.master:

/nfs    -hosts

Then restart autofs:

sudo /etc/init.d/autofs stop
sudo /etc/init.d/autofs start

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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