[lug] Protecting Mount Points

Kyle Anderson kyle at xkyle.com
Wed Feb 23 13:34:34 MST 2011


I agree, this is what I have done in the past too. Sometimes I also
stick in a text file in there before I make it immutable to remind
myself what I did, and other admins for the future.
Personally I have done a lot of head scratching before I remember to
do lsattr. :)

On Wed, Feb 23, 2011 at 1:17 PM, David L. Willson <DLWillson at thegeek.nu> wrote:
> This is what I do:
>
> # chattr +i /mountdir
>
> David L. Willson
> Trainer, Engineer, Enthusiast
> RHCE MCT MCSE Network+ A+ Linux+ LPIC-1 NovellCLA UbuntuCP
> tel://720.333.LANS
> Freedom is better when you earn it. Learn Linux.
>
> ----- Original Message -----
> From: "Will" <will.sterling at gmail.com>
> To: lug at lug.boulder.co.us
> Sent: Wednesday, February 23, 2011 1:04:44 PM
> Subject: [lug] Protecting Mount Points
>
>
> I want to protect some mount points from being written to if an NFS mount were to fail. I think I can do this by setting the mount point to be owned by root and writable by no one. When the NFS export is mounted the mount point will take on the permissions of the export allowing the proper users/groups to write to it. I am about to set up a quick test to verify this but I was wondering if anyone already knows if this works or a better way to accomplish the same?
>
>
> Regards,
> Will
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>



More information about the LUG mailing list