6.2.27 Ensure nosuid is set on users' home directories.

Information

The operating system must be configured so that file systems containing user home directories are mounted to prevent files with the setuid and setgid bit set from being executed.

Rationale:

The nosuid mount option causes the system to not execute setuid and setgid files with owner privileges. This option must be used for mounting any file system not containing approved setuid and setguid files. Executing files from untrusted file systems increases the opportunity for unprivileged users to attain unauthorized administrative access.

Solution

Configure the /etc/fstab to use the nosuid option on file systems that contain user home directories.
Example: vim /etc/fstab
Update any of the file systems listed without the nosuid option'

UUID=a411dc99-f2a1-4c87-9e05-184977be8539 /home ext4 rw,relatime,discard,data=ordered,nosuid 0 2

Notes:

This Benchmark recommendation maps to:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide:

Version 2, Release: 3 Benchmark Date: 26 Apr 2019

Vul ID: V-72041

Rule ID: SV-86665r4_rule

STIG ID: RHEL-07-021000

Severity: CAT II

See Also

https://workbench.cisecurity.org/files/2688

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(10)

Plugin: Unix

Control ID: 4791f0346346c7ef58182526731a582b835638d21b23bff72af5f4add7312f72