LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2004, 09:31 AM   #1
alsm
LQ Newbie
 
Registered: Mar 2004
Location: Brazil
Distribution: RH 9 heavylly modified
Posts: 1

Rep: Reputation: 0
Multiple mount points


I am implementing a backup system on my home lan and I wanted to make the backup partition read-write for root and read-only for the users. Mount tecnically can do this (mount --bind /old/mount /new/mount), but I did a small test and this is what i got:

[alsm@clarkkent alsm]$ sudo mount --bind --read-only /mnt/exchange /alsm/teste
[alsm@clarkkent alsm]$ mount
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda6 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda8 on /tmp type ext3 (rw)
/dev/hda5 on /usr type ext3 (rw)
/dev/hda7 on /var type ext3 (rw)
/dev/hda2 on /mnt/exchange type vfat (rw)
/mnt/exchange on /alsm/teste type none (ro,bind)


Everything seems to be right but the fact is that I was able to write on the (ro,bind) "partition". I found out that this is a bug in the kernel, but it should have been fixed for the 2.6 series. Can someone point the real facts?

thanks
 
Old 03-28-2004, 04:05 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
" I wanted to make the backup partition read-write for root and read-only for the users."

I have a backup set up the way that you want and have never had any trouble with it.
You can try changing the permissions of the mounpoint directory to 755. Unmount the partition, change the permissions of the mountpoint to 755, and mount the partition again.

Here is my /etc/fstab entry for my backup partition:
/dev/hde3 /backup ext2 defaults 1 2


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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
what partitions(mount points) can you reuse in a multiple boot linux system? scottk88 Linux - General 5 08-01-2005 12:49 PM
Set up Windows network with multiple access points newuser455 General 8 02-02-2005 06:12 PM
multiple mount points for cds lavoisier Mandriva 2 10-22-2003 07:59 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 06:48 AM
Multiple Mount Points LinuxGeek Linux - General 2 07-28-2002 07:46 PM


All times are GMT -5. The time now is 04:31 PM.

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