mount as ro for users, rw for root?

Renaud MICHEL renaud.michel.defimedia at gmail.com
Mon Dec 15 01:50:45 CST 2008


Le dimanche 14 décembre 2008 à 17:22, Sabuj Pattanayek a écrit :
> btw, I also tried this :
>
> mount -t fsType /dev/somedev /rootOnly/foo
> mount --bind -o ro /rootOnly/foo /everyone/foo
>
> and even though mount reports /everyone/foo as (bind,ro) the ro option
> doesn't work if the first mount point was mounted rw. I don't know if
> this is a bug or if this behavior is intentional. Personally, I don't
> like this behavior, if it says ro it should be ro or give me an error
> or warning when I did the mount --bind . I couldn't find anything in
> google where someone else had been annoyed by this similar behavior.
> This was on an ubuntu 8.04 system :
>
> Linux notforyou 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008
> i686 GNU/Linux

This behaviour has been changed in kernel 2.6.26, cf
http://kernelnewbies.org/Linux_2_6_26#head-84b0b94f54cc4be3dd955b16a41cab633d11645b
http://lwn.net/Articles/281157/

-- 
Renaud MICHEL
defimedia S.A.



More information about the Linux-PowerEdge mailing list