mount as ro for users, rw for root?

Tino Schwarze linux-poweredge.lists at tisc.de
Mon Dec 15 05:43:37 CST 2008


On Sun, Dec 14, 2008 at 07:40:51PM +0100, Matteo Concilio wrote:
> 2008/12/14 Sabuj Pattanayek <sabujp at gmail.com>:
> > btw, I also tried this :
> >
> > mount -t fsType /dev/somedev /rootOnly/foo
> > mount --bind -o ro /rootOnly/foo /everyone/foo
> 
> chown root:users /everyone/foo
> chmod a-r /everyone/foo
> 
> does this work?

No, it just removes the write permission for the directory, not for the
whole subtree.

Tino.

-- 
"What we nourish flourishes." - "Was wir nähren erblüht."

www.lichtkreis-chemnitz.de
www.craniosacralzentrum.de



More information about the Linux-PowerEdge mailing list