How to Secure /tmp on CentOS แบบ image files
dd if=/dev/zero of=tmpfile bs=1024 count=2048576
mkfs.ext4 -j /tmpfile
mount -o loop,noexec,nosuid,rw /tmpfile /tmp
chmod 1777 /tmp
echo "/tmpfile /tmp ext4 loop,rw,noexec,nosuid,nodev 0 0" >> /etc/fstab
rm -rf /var/tmp
ln -s /tmp/ /var/tmp
Was this answer helpful?
Caution: VMware recommends having a complete backup of the virtual machine prior making these...
for centos 6.x it is changed to the following codes : To print current limit type:# sysctl...
following this command line as root accessiptables -I INPUT -m state --state ESTABLISHED,RELATED...
To reset your root password: 1. When the GRUB loader shows during boot press the spare bar to...
Powered by WHMCompleteSolution