Add nodev Option to /home

Details

When set on a file system, this option prevents character and block special devices from

being defined, or if they exist, from being used as character and block special devices.

*Rationale*

Since the user partitions are not intended to support devices, set this option to ensure that

users cannot attempt to create block or character special devices.

Note- The actions in the item refer to the /home partition, which is the default user partition that is defined in many distributions. If you have created other user partitions, it is

recommended that the Remediation and Audit steps be applied to these partitions as well.

Solution

Edit the /etc/fstab file and add nodev to the fourth field (mounting options). See the
fstab(5) manual page for more information.# mount -o remount,nodev /home

Supportive Information

The following resource is also helpful.

This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles