nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

mounting within an already mounted partition

This is a discussion on mounting within an already mounted partition within the Linux software forums, part of the Linux Getting Started category; I've been reading up on mount, ever since on my security reading binge, that mounting the /tmp in fstab to ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 08-17-2007, 06:21 AM
Junior Member
User
 
Join Date: Aug 2007
Location: Somewhere in that Upper Midwest Area.
My distro: Ubuntu/openSUSE/Sabayon
Posts: 8
Rep Power: 0
scytale is on a distinguished road
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?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-17-2007, 07:54 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,061
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
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
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 08-17-2007, 10:36 PM
Junior Member
User
 
Join Date: Aug 2007
Location: Somewhere in that Upper Midwest Area.
My distro: Ubuntu/openSUSE/Sabayon
Posts: 8
Rep Power: 0
scytale is on a distinguished road
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.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Mounting cdrom in cent os 5 linux jerry Getting started tutorials 3 03-24-2008 05:48 PM
mounting an NFS filesystem with iptables natashak Networking, Firewalls and Security 2 11-30-2007 12:26 AM
Mounting servers in Linux rav Linux software 1 05-03-2007 12:57 AM
windows partition mounting problem in linux as4.o ramjimh Linux software 4 04-22-2006 01:04 AM
How to verify the options used when mounting a nfs FS. warren Solaris/OpenSolaris 4 03-28-2006 07:45 AM


All times are GMT +5.5. The time now is 01:25 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36