2.1.1 Ensure autofs services are not in use
Audit#
As a preference autofs should not be installed unless other packages depend on it.
Run the following command to verify autofs is not installed:
- OR -
- IF - the package is required for dependencies:
Run the following command to verify autofs.service is not enabled:
Run the following command to verify autofs.service is not active:
Nothing should be returned.Note: If the package is required for a dependency
- Ensure the dependent package is approved by local site policy
- Ensure stopping and masking the service and/or socket meets local site policy
Remediation#
Run the following commands to stop autofs.service and remove the autofs package:
- OR -
- IF - the autofs package is required as a dependency:
Run the following commands to stop and mask autofs.service: