mount as ro for users, rw for root?

Sabuj Pattanayek sabujp at gmail.com
Sun Dec 14 10:22:15 CST 2008


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

HTH
Sabuj Pattanayek



More information about the Linux-PowerEdge mailing list