Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Note that UserB is the owner of the directory tree, hence the reason the setfacl is run as UserB.# get target directory path (this will change through each iteration o +f the utility) $destination = "/abc/def/ghi/jkl" # this is a directory `sudo -u UserB setfacl ....set group level perms on $destination` # is target direcory readable now -r $destination or $newdestination = traverse backwards to next level (e.g. "/abc/def/ghi +") run the sudo command to set the perms on $newdestination Do the read test again on the original $destination If successful finish otherwise traverse back up the directory chain again and redo the setfacl and re +ad test
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory traversal backwards
by Skeeve (Parson) on Jun 20, 2006 at 09:23 UTC |