GNU bug report logs - #19447
chmod - problem

Previous Next

Package: coreutils;

Reported by: Tom <oldtommy <at> gmx.at>

Date: Fri, 26 Dec 2014 20:07:02 UTC

Severity: normal

Tags: notabug

Done: 19447 <at> debbugs.gnu.org

Bug is archived. No further changes may be made.

Full log


Message #8 received at 19447 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Tom <oldtommy <at> gmx.at>, 19447 <at> debbugs.gnu.org
Subject: Re: bug#19447: chmod - problem
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




This bug report was last modified 10 years and 153 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.