Code: Select all
du -sh /homeRead my post again.tdennist wrote:Cool beans. What exactly is the /opt directory used for, anyway? And what does it stand for?
/tmp!tdennist wrote:I'm asking so I will know what's a good idea to give a separate partition to.
Arghfloffe wrote:*BEEP* USR = Unix System Resourcesmoocha wrote:And take a look at /usr. Comes from user, of course
While at first, setting noexec might seem to be the perfect solution, but it can easily be circumvented. While the shell might not execute something that doesn't have the +x bit set, you can always easily run it though something that will run it.Deebster wrote:Having /tmp as a separate partition allows you to mount it with the options nodev,nosuid,noexec, which stops pretty much all linux attack scripts and worms
Code: Select all
/bin/sh /tmp/mynastyscriptCode: Select all
python /tmp/mynastyscriptCode: Select all
/lib/ld-linux.so.2 /tmp/mynastybinary
*goes and hides under a HUGE rock for the next couple of years*Unne wrote:*BEEP BEEP* http://www.google.com/search?q=usr+%22u ... 2+retronym