I'd like to create a new partition and move the contents of the /var directory to it for the security reason of having /var/www and other subdirectories "mounted" with nosuid, noexec, and nodev permissions. How do I do it for /var or any other root directory?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
||||
|
Actually, a slight modification to warl0ck's plan (because I'm paranoid)
|
|||||
|
|
A simple way is mount the new partition on some temporarily location, then do a Afterwards, boot to root maintain mode, erase |
|||
|
|
nosuidetc. partition for/var, or a separate partition per subdirectory? – Useless Dec 7 '12 at 10:42/varalone. – Desmond Hume Dec 7 '12 at 10:43