System Administration Guide: Network Services

ProcedureHow to Use the /etc/default/autofs File

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. Add or modify an entry in the /etc/default/autofs file.

    For example, if you want to turn off browsing for all autofs mount points, you could add the following line.


    This keyword is the equivalent of the -n argument for automountd. For a list of keywords, refer to /etc/default/autofs File.

  3. Restart the autofs daemon.

    Type the following command:

    # svcadm restart system/filesystem/autofs