[Nottingham] find and recursive home mounts

Rory Holland rory at linux.com
Mon Dec 5 17:49:33 UTC 2011


What about permissions? Perhaps on box 1 you could set the permission
(locally) of ~/box2/box1 so you don't have permission to read it (and
vice versa).

I don't know if there's a way of doing this, and be careful you don't
bork the permissions on the other box.

On 5 December 2011 17:45, Eben Till <ctrl.alt.nerd at googlemail.com> wrote:
> Also try -xdev. Thought about it just after I hit send. Derp
>
> ~Eben
>
> On Dec 5, 2011 5:44 PM, "Eben Till" <ctrl.alt.nerd at googlemail.com> wrote:
>>
>> Have you tried the -maxdepth flag? My hopes aren't high but it's worth a
>> shot
>>
>> ~Eben
>>
>> On Dec 5, 2011 5:35 PM, "Mike Martin" <mike at redtux.org.uk> wrote:
>>>
>>> Hi hoping someone knows a solution this scenario
>>>
>>> I have two boxen which have each others home directories mounted on home
>>> ie:
>>>
>>> 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
>>>
>>> however when I use find eg;
>>>
>>> find <dir>  -iname  'VIDEO_TS' -type d
>>>
>>> it loops recursively forever, descending into the two links recursively
>>> dir/DVD/VIDEO_TS
>>> dir/box2/box1/DVD/VIDEO_TS
>>> dir/box2/box1/box2/box1/DVD/VIDEO_TS
>>>
>>> anyone knows of any way to avoid this?
>>>
>>> _______________________________________________
>>> Nottingham mailing list
>>> Nottingham at mailman.lug.org.uk
>>> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham



More information about the Nottingham mailing list