LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2010, 11:26 PM   #1
stanleycia
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
How to prevent access to unmounted mount point?


Hi.

I'm using some software that using mount point such as truecrypt. I also mount shared folder on other machine (fileserver) and publish it using ftp. The problem is when the truecrypt volume dismounted or the shared folder mount point loosing connection to the fileserver, user can write to the mount point without knowing that they actually not writing to the truecrypt volume or to the shared folder.

My question is, when sometime the server reboot and truecrypt volume is not mounted yet, how to prevent write to the mount point? I dont run truecrypt mount automatically for security reason.

Some question for shared folder, if fileserver restart and the shared folder mount point got disconnected, how to prevent write to the mount point?

Thank you.
 
Old 01-11-2010, 05:10 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
chmod a-w /path/to/mountpoint
 
Old 03-31-2010, 02:32 AM   #3
DMahalko
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Just a followup from google searching for a solution to this. 'chmod a-w' does not work for me if the mounting is done by the user, with an entry in fstab.

(I'm using cifs to mount windows server share, Ubuntu 8.04.)

/etc/fstab entry:

//10.0.0.15/winshare /media/backupsrv cifs rw,user,noauto,username=foo,password=bar 0 0

========
: ls -l /media/backupsrv
drwx------ 2 maint root 4096 2010-03-13 01:01 backupsrv

: mount //10.0.0.15/winshare
(success)
: umount //10.0.0.15/winshare
(success)
=========

: chown a-w backupsrv
: ls -l /media/backupsrv
dr-x------ 2 maint root 4096 2010-03-13 01:01 backupsrv

: mount //10.0.0.15/winshare
mount error: permission denied or not superuser and mount.cifs not installed SUID

,

Last edited by DMahalko; 03-31-2010 at 03:05 AM. Reason: I see cifs should be used rather than smbfs, no effect on issue
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
device mount point/driver access richmgb Linux - Embedded & Single-board computer 2 04-18-2009 04:13 AM
puppy+grub saves ram installed mount point as HD install mount point agualust Linux - Newbie 0 04-10-2009 12:23 PM
Can't access mount point after mounting W2K3 Svr share humbletech99 Linux - Networking 1 12-15-2006 02:58 PM
inactive mount point can't be unmounted fractal_chaos Linux - General 4 07-01-2004 01:48 PM


All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration