Recursively removing the execute permission

Nils Kassube kassube at gmx.net
Thu Apr 29 18:00:05 BST 2010


Bruce Marshall wrote:
> On Thursday, April 29, 2010, Nils Kassube wrote:
> > > > find -type f -exec chmod -x {} \;
> 
> chmod -R  -x  /<path>/<to>/<main directory>/
> 
> should do it for that directory and all subdirs.

Except, it also removes the x flag from the directories which is not 
necessarily what Nigel wanted. :)


Nils



More information about the kubuntu-users mailing list