What do Linux security mount options do?
Enhance security by restricting filesystem behavior
Name common security mount options.
nodev, nosuid, noexec
What does nodev do?
Prevents special device files on a filesystem from being treated as actual devices
Why use nodev?
Prevents unauthorized access to hardware or system functions
Syntax for nodev?
mount -o nodev <device> <mountpoint></mountpoint></device>
Example of nodev?
sudo mount -o nodev /dev/sdb1 /mnt/safe
What does nosuid do?
Prevents execution of files with SUID or SGID bits
Why use nosuid?
Blocks files from gaining elevated privileges when run
Syntax for nosuid?
mount -o nosuid <device> <mountpoint></mountpoint></device>
Example of nosuid?
sudo mount -o nosuid /dev/sdb1 /mnt/no-suid
What does noexec do?
Prevents execution of any binaries or scripts located on the filesystem
Why use noexec?
Protects against unauthorized or malicious code execution
Syntax for noexec?
mount -o noexec <device> <mountpoint></mountpoint></device>
Example of noexec?
sudo mount -o noexec /dev/sdb1 /mnt/lockdown