[Nottingham] find and recursive home mounts

David Aldred davidaldred at gmail.com
Mon Dec 5 18:12:55 UTC 2011


-path combined with -prune is worth looking at; it should exclude
directories, and I believe -path accepts regex.

If you exclude both box1/box2/box1/ and /box2/box1/, I think you'll then be
finding across each box only once.

Actual construction of command left as an exercise for  the reader.....


David Aldred


On 5 December 2011 18:08, Jason Irwin <jasonirwin73 at gmail.com> wrote:

> On 05/12/11 17:34, Mike Martin wrote:
> > box1 has home directory of box2 mounted on ~/box2
> > box2 has home directory of box1 mounted on ~/box1
> >
> > both using sshfs, though I would expect same issue with NFA/CIFS
>
> Security?
> Remove permissions for the box1 ssh user to ~/box1 on box2.
> Remove permissions for the box2 ssh user to ~/box2 on box1.
>
> My crude guess would be to have a share group (e.g. "box-share") that
> contains everyone but the other user (e.g. on box1 it's everyone but the
> box2 ssh user).  Then go with 740 as the permissions (or whatever makes
> sense for your use case).  Upshot should be that the local box user
> cannot see their own home via the foreign share.
> I hope that all made sense.
>
> I really need to learn more about sharing that simple cobbling Samba
> configs together...
>
> --
> Jason Irwin
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20111205/c2033ca9/attachment-0001.htm>


More information about the Nottingham mailing list