Separate Disk Partitions
by Geethalakshmi[ Edit ] 2009-12-15 19:54:54
Separate Disk Partitions
Separation of the operating system files from user files may result into a better and secure system. Make sure the following filesystems are mounted on separate partitions:
* /usr
* /home
* /var and /var/tmp
* /tmp
Create septate partitions for Apache and FTP server roots. Edit /etc/fstab file and make sure you add the following configuration options:
1.
noexec - Do not set execution of any binaries on this partition (prevents execution of binaries but allows scripts).
2.
nodev - Do not allow character or special devices on this partition (prevents use of device files such as zero, sda etc).
3.
nosuid - Do not set SUID/SGID access on this partition (prevent the setuid bit).
Sample /etc/fstab entry to to limit user access on /dev/sda5 (ftp server root directory):
/dev/sda5 /ftpdata ext3 defaults,nosuid,nodev,noexec 1 2