System Administration Guide, Volume 3

How to Completely Disable Autofs Browsability on a Single NFS Client

  1. Become superuser.

  2. Add the -n option to the startup script.

    As root, edit the /etc/init.d/autofs script and add the -n option to the line that starts the automountd daemon:


    	/usr/lib/autofs/automountd -n \
    		< /dev/null > /dev/console 2>&1	# start daemon
  3. Restart the autofs service.


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