Results 1 to 3 of 3

Thread: mounting within an already mounted partition

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Location
    Somewhere in that Upper Midwest Area.
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default mounting within an already mounted partition

    I've been reading up on mount, ever since on my security reading binge, that mounting the /tmp in fstab to have the noexec option eliminates many of the security risks from the nature of /tmp being so open.

    Reading through the man pages, I haven't been able to figure out if there are any potential problems with mounting that directory to another directory with the noexec option would have any potentially harmful side effects.

    How harmful can is this for /tmp?

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,513
    Thanks
    17
    Thanked 803 Times in 511 Posts
    Rep Power
    10

    Default

    Quote Originally Posted by scytale View Post
    I've been reading up on mount, ever since on my security reading binge, that mounting the /tmp in fstab to have the noexec option eliminates many of the security risks from the nature of /tmp being so open.
    Yup, you got correct information. There is no need to setup exec and other permission on /tmp.

    Quote Originally Posted by scytale View Post
    Reading through the man pages, I haven't been able to figure out if there are any potential problems with mounting that directory to another directory with the noexec option would have any potentially harmful side effects.

    How harmful can is this for /tmp?
    Modern kernel does allows to mount same partition under 2 dirs. I've not tried it but results should be unexpected. Also keeping mind that only root can mount /tmp to other location
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    Aug 2007
    Location
    Somewhere in that Upper Midwest Area.
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Thanks, I'll try it on an old box and run some heavier applications, like Octave, some databases when running a dump, and anything else I find that writes to files in /tmp a lot. Maybe even something simple, like taring a very large file over SSH, or SCP.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to verify the options used when mounting a nfs FS.
    By warren in forum Solaris/OpenSolaris
    Replies: 5
    Last Post: 30th April 2009, 05:56 PM
  2. windows partition mounting problem in linux as4.o
    By ramjimh in forum Linux software
    Replies: 9
    Last Post: 24th December 2008, 12:38 PM
  3. Mounting cdrom in cent os 5 linux
    By jerry in forum Getting started tutorials
    Replies: 3
    Last Post: 24th March 2008, 04:48 PM
  4. mounting an NFS filesystem with iptables
    By natashak in forum Networking, Firewalls and Security
    Replies: 2
    Last Post: 29th November 2007, 11:26 PM
  5. Mounting servers in Linux
    By rav in forum Linux software
    Replies: 1
    Last Post: 2nd May 2007, 11:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •