RHEL-06-000526 - Automated file system mounting tools must not be enabled unless needed - CHKCONFIG

Information

All filesystems that are required for the successful operation of the system should be explicitly listed in '/etc/fstab' by an administrator. New filesystems should not be arbitrarily introduced via the automounter.

The 'autofs' daemon mounts and unmounts filesystems, such as user home directories shared via NFS, on demand. In addition, autofs can be used to handle removable media, and the default configuration provides the cdrom device as '/misc/cd'. However, this method of providing access to removable media is not common, so autofs can almost always be disabled if NFS is not in use. Even if NFS is required, it is almost always possible to configure filesystem mounts statically by editing '/etc/fstab' rather than relying on the automounter.

Solution

If the 'autofs' service is not needed to dynamically mount NFS filesystems or removable media, disable the service for all runlevels:

# chkconfig --level 0123456 autofs off

Stop the service if it is already running:

# service autofs stop

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_6_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|III, CCI|CCI-000366, Rule-ID|SV-218104r603264_rule, STIG-ID|RHEL-06-000526, STIG-Legacy|SV-50237, STIG-Legacy|V-38437, Vuln-ID|V-218104

Plugin: Unix

Control ID: bf347758267a34a25dae538797b3505fe202fbac194120d58c961fad00a5b4ce