1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Securing /TMP as per instructions of KB Parallels

Discussion in 'Plesk for Linux - 8.x and Older' started by Mandi, Jul 7, 2008.

  1. Mandi

    Mandi Guest

    I was following the instructions of: http://kb.odin.com/en/1410
    to secure my /tmp folder in noexec mode.

    When I edit /etc/fstab, I see another /tmp mounted
    none /tmp tmpfs size=1g 0 0

    I add the line as instructed in the Knowledge base (!?)
    and now my /etc/fstab looks like:

    none /tmp tmpfs size=1g 0 0
    /var/filesystems/tmp_fs /tmp ext3 noexec,nosuid,loop 1 1

    when I df
    I see 2 /tmp partitions.

    /dev/sda1 972404 141324 781684 16% /
    /dev/sda5 4881504 1948580 2932924 40% /usr
    /dev/sda7 65384700 29728460 35656240 46% /var
    /dev/sda6 4881504 1358920 3522584 28% /home
    none 1048576 596 1047980 1% /tmp
    none 1048576 596 1047980 1% /tmp

    is the old partition taking precende on the new one?
    Shall I remove the line of the old /tmp line from the fstab and then add the new one?

    They look silly questions, but I don't want to mess up a 1and1, no support server.
  2. atomicturtle

    atomicturtle Golden Pleskian

    Nov 20, 2002
    Likes Received:
    Washington, DC
    I wouldnt worry about it, "Securing /tmp" doesn't really do anything anyway. All it means is that instead of the badguys doing this:

    chmod +x /tmp/foo.pl

    they do this

    perl /tmp/foo.pl

    They usually do the latter anyway, since it involves fewer commands.
  3. sulimo

    sulimo Guest

    move mnt

    Hi. Done as described above but my redhat would not boot saying it could not check filesystem /filesystems/tmp_fs only to drop in into the repair console.

    I added /filesystems/tmp_fs /tmp ext3 noexec,nosuid,loop 1 0 instead of 1 1 so to disable boot fsck for that fs.

    Would that be the correct way to go?
    Any other method for moving /tmp from / into another filesystem?