> On Feb 26, 2012, Stefano Lattarini <[email protected]> wrote:
> ...
> Oops, my bad. I meant this:
>
> $ mkdir a a/b
> $ chmod 000 a
> $ find a -type d ! -perm -700 -exec chmod u+rwx '{}' \;
> $ echo exit status: $?
>
> Sorry for the confusion and for the time I've made you waste, and thanks
> for your perseverance,
>
> Stefano
Not a problem. Apologies for my entropic quote levels.
Isn't this normal for find in the absence of sudo?
$ mkdir a a/b
$ chmod 000 a
$ find a -type d ! -perm -700
find: a: Permission denied
$ echo exit status: $?
exit status: 1
$ find a -type d ! -perm -700 -exec chmod u+rwx '{}' \;
find: a: Permission denied
$ echo exit status: $?
exit status: 1