LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Multiple mount points (https://www.linuxquestions.org/questions/linux-software-2/multiple-mount-points-163342/)

alsm 03-28-2004 08:31 AM

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

jailbait 03-28-2004 03:05 PM

" 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


All times are GMT -5. The time now is 05:15 AM.