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
  • sounds to me like unix.stackexchange.com/a/359151/117549 Commented May 4, 2020 at 16:33
  • It is the configuration, I am looking for. I know what it is used for, but I am missing the config. Commented May 4, 2020 at 17:23

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.