LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-04-2006, 12:26 PM   #1
zman818
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Rep: Reputation: 0
Can't remount a --bind'd mount


Greetings.

I'm trying to secure the /tmp directory on a single partition CentOS 3.7 installation. The approach of creating a file-based filesystem device and using -o loop isn't feasible, since the VPS environment I'm using doesn't support the loop device.

So I'm trying to create a mount using --bind. I've discovered that mount options (noexec, nosuid, etc) are not recognizied when --bind is used, and that the solution to this problem is to perform a mount -o remount following the initial mount.

Unfortunately I'm getting permission denied on this, and I have no idea why.

Code:
# mount --bind -o noexec /tmp2 /root/tmp2
(silent success, but with noexec ignored as reported by /proc/mount)
# mount -o remount,noexec /root/tmp2
mount: permission denied
mount version is 2.11y

Any thoughts are most appreciated. Thanks.

Last edited by zman818; 09-04-2006 at 12:29 PM.
 
Old 09-06-2006, 08:44 PM   #2
zman818
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Does anyone have a thought on this? Thanks.
 
Old 09-10-2006, 06:31 PM   #3
zman818
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Perhaps someone could direct me to a forum that might provide me with an answer to this... ? Thanks.
 
Old 09-12-2006, 06:08 AM   #4
zman818
LQ Newbie
 
Registered: Sep 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks everyone...
 
  


Reply

Tags
bind, centos, mount, remount, secure, tmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"mount -o remount..." vs. smbfs haertig Debian 3 12-09-2005 11:18 AM
remount to hd ewt3y Linux - Newbie 1 08-16-2005 04:28 AM
USB drive mount disappears randomly, cannot remount (Red Hat 9) Bigglesworth Linux - General 11 01-02-2004 11:50 AM
USB drive mount disappears randomly, cannot remount (redhat 9) Bigglesworth Linux - Hardware 0 12-21-2003 12:44 AM
Cannot remount rw Andiroo Red Hat 3 12-02-2003 10:33 AM


All times are GMT -5. The time now is 01:16 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration