From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 26 15:06:49 2014 Received: (at submit) by debbugs.gnu.org; 26 Dec 2014 20:06:50 +0000 Received: from localhost ([127.0.0.1]:58414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4b9t-0004Sl-82 for submit@debbugs.gnu.org; Fri, 26 Dec 2014 15:06:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39302) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4ZcU-0001zT-F6 for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:28:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4ZcT-0006MG-I6 for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:28:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:41532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4ZcT-0006MC-Ew for submit@debbugs.gnu.org; Fri, 26 Dec 2014 13:28:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4ZcS-00085V-Ct for bug-coreutils@gnu.org; Fri, 26 Dec 2014 13:28:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y4ZcP-0006Kl-2T for bug-coreutils@gnu.org; Fri, 26 Dec 2014 13:28:12 -0500 Received: from mout.gmx.net ([212.227.17.20]:62740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y4ZcO-0006KB-PE for bug-coreutils@gnu.org; Fri, 26 Dec 2014 13:28:09 -0500 Received: from [192.168.0.208] ([178.188.235.38]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LfYqz-1XX8bE0mOf-00p5Li for ; Fri, 26 Dec 2014 19:28:05 +0100 Message-ID: <549DA8B4.6080200@gmx.at> Date: Fri, 26 Dec 2014 19:28:04 +0100 From: Tom User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: chmod - problem Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:RBPRA6fs3Hx1ya75icjmNQTOZkI8hZxSXVcXy6QiNxFuU6p/V4g ovtOssOm5SjByJTNLBklkEyGE2WnJTfl7riza04qqX9oQFXm6JIL2ppmDqjIe3Q5G/gMBzp uzWaUpgkPs0/748BriVPbImWs6R3as/K/Dt2u+mnuoYf7m0c2YuHODY9JTDjz3aX4cJAl85 LOcABsbacSXg4hDefVcGQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Dec 2014 15:06:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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. Cheers, Tom From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 26 20:19:35 2014 Received: (at 19447) by debbugs.gnu.org; 27 Dec 2014 01:19:35 +0000 Received: from localhost ([127.0.0.1]:58497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4g2Y-0005JG-Jd for submit@debbugs.gnu.org; Fri, 26 Dec 2014 20:19:34 -0500 Received: from mail1.vodafone.ie ([213.233.128.43]:54425) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4g2W-0005J3-Gy for 19447@debbugs.gnu.org; Fri, 26 Dec 2014 20:19:33 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlMIAGQInlRtTf95/2dsb2JhbABbgwaCTYETT8cKglACgQkWAQEBAQF9hA0BBSMPAVYLDQsCAgUWCwICCQMCAQIBRQYBDAgBAYgsAbQ8hWmPNQELIIEhjl2CaIFBBZ0iizYig24+gnQBAQE Received: from unknown (HELO localhost.localdomain) ([109.77.255.121]) by mail1.vodafone.ie with ESMTP; 27 Dec 2014 01:19:30 +0000 Message-ID: <549E0922.4090707@draigBrady.com> Date: Sat, 27 Dec 2014 01:19:30 +0000 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Tom , 19447@debbugs.gnu.org Subject: Re: bug#19447: chmod - problem References: <549DA8B4.6080200@gmx.at> In-Reply-To: <549DA8B4.6080200@gmx.at> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19447 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 26 20:24:16 2014 Received: (at 19447) by debbugs.gnu.org; 27 Dec 2014 01:24:17 +0000 Received: from localhost ([127.0.0.1]:58501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4g76-0005Ql-BP for submit@debbugs.gnu.org; Fri, 26 Dec 2014 20:24:16 -0500 Received: from joseki.proulx.com ([216.17.153.58]:45084) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y4g73-0005QW-4A; Fri, 26 Dec 2014 20:24:14 -0500 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 27DB721236; Fri, 26 Dec 2014 18:24:09 -0700 (MST) Received: by hysteria.proulx.com (Postfix, from userid 1000) id ECCED2DC45; Fri, 26 Dec 2014 18:24:08 -0700 (MST) Date: Fri, 26 Dec 2014 18:24:08 -0700 From: Bob Proulx To: Tom Subject: Re: bug#19447: chmod - problem Message-ID: <20141226181622828202274@bob.proulx.com> Mail-Followup-To: Tom , 19447@debbugs.gnu.org References: <549DA8B4.6080200@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <549DA8B4.6080200@gmx.at> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 19447 Cc: 19447@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: 19447@debbugs.gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) tag 19447 + notabug close 19447 thanks Hello Tom, Thank you for your bug report. Trying to help and improve the tools is always appreciated. However it seems there is a misunderstanding. Therefore I am marking the bug closed as housekeeping for the ticket system. However please lets discuss the problem in this bug ticket until it all makes sense. Others having the same confusion can read it and it will help them later. Tom wrote: > 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. In the above you did not specify any subdirectories to chmod. At least I assume that all of your *.txt files are files and not directories. If a directory was named foo.txt and it was a directory then of course that would be a named argument and it would be a directory and it would recurse down it. In order for --recursive to make sense at least one of the arguments must be a directory. You can't recurse down through a file. I could say much more but this is actually an FAQ. Here is the FGA in response to it. Please let us know if this answers your questions. http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Why-doesn_0027t-rm-_002dr-_002a_002epattern-recurse-like-it-should_003f Meanwhile, this is prehaps the useful command you wanted. Try it. It is POSIX standard and would work on any POSIX system. find . -name '*.txt -exec chmod a-x {} + If you wanted --verbose as in your question then: find . -name '*.txt -exec chmod --verbose a-x {} + Again please let us know how we could improve the documentation or whatever in order to make understanding what is happening easier. Bob From unknown Mon Jun 23 18:30:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 24 Jan 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator