Subject: bug#19447: chmod - problem

From: Pádraig Brady <[email-masked]>
Date: Sat, 27 Dec 2014 01:19:30 +0000

tag 19447 notabug
close 19447
stop

On 26/12/14 18:28, Tom wrote:
> Hi
> 
> chmod does not work recursively. The command
> 
> chmod --recursive --verbose a-x ./*.txt
> 
> only has effects in the actual working directory, but not in the 
> subdirectories.

You're passing only .txt files to chmod here
so the --recursive option in ineffective here.
You probably want something like:

  find . -name '*.txt' -print0 | xargs -r0 chmod --verbose a-x

cheers,
Pádraig