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

1 Answer 1

0

In /etc/auto.master:

/nfs    -hosts

Then restart autofs:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .