I'm modifying /etc/fstab with this guide:https://www.vultr.com/docs/secure-tmp-a ... n-centos-6
It says:
Code: Select all
Look for the line in the fstab file with tmpfs and /shm. Replace 'defaults' with 'defaults,nosuid,noexec,nodev'. Save the file.
Here is the content of my /etc/fstab
Code: Select all
#
# /etc/fstab
# Created by anaconda on Tue Jan 26 04:35:48 2016
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root / xfs defaults 1 1
UUID=97b63094-a04d-4060-86f8-164c558ba1f3 /boot xfs defaults 1 2
UUID=79DA-BD0B /boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/mapper/centos-home /home xfs defaults 1 2
/dev/mapper/centos-swap swap swap defaults 0 0
Cheers