nixCraft Linux Forum

nixCraft

Linux / UNIX 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 ...

Register free or login to your existing account and remove all advertisements.


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

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2007, 06:21 AM
Junior Member
User
 
Join Date: Aug 2007
Location: Somewhere in that Upper Midwest Area.
OS: Ubuntu/openSUSE/Sabayon
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #2 (permalink)  
Old 08-17-2007, 07:54 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Posts: 2,662
Thanks: 11
Thanked 237 Times in 177 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
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.
OS: Ubuntu/openSUSE/Sabayon
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to verify the options used when mounting a nfs FS. warren Solaris/OpenSolaris 5 04-30-2009 06:56 PM
windows partition mounting problem in linux as4.o ramjimh Linux software 9 12-24-2008 01:38 PM
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


All times are GMT +5.5. The time now is 06:04 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

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 37 38