In CentOS 7, I have been told to secure the /tmp folder with with noexec,nosuid in /etc/fstab
When I view the /etc/fstab, I can only see few lines without /tmp mounting option.
I have created a tmp disk (1gb) and assign this disk via linode manager to /dev/sdc
and in order to mount this in /etc/fstab
I write the following:
/dev/sdc /tmp ext4 defaults,nodev,nosuid,noexec 0 0 then I save this and reboot the server.
I test my /tmp folder by downloading something using wget but nothing got saved in the folder.
How do I secure the /tmp folder in /tmp and /var/tmp?
I read that I must create a new drive for /tmp in order for it to be able to mount as nosuid and noexec
Can anyone guide me? I'm new to CentOS 7.