GNU bug report logs - #8729
RFE: chmod "-D" operate on dir's only

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Wed, 25 May 2011 01:58:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#8729: closed (RFE: chmod "-D" operate on dir's only)
Date: Wed, 25 May 2011 08:26:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 25 May 2011 09:22:28 +0100
with message-id <4DDCBC44.8010508 <at> draigBrady.com>
and subject line Re: bug#8729: RFE: chmod "-D" operate on dir's only
has caused the GNU bug report #8729,
regarding RFE: chmod "-D" operate on dir's only
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
8729: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8729
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Linda Walsh <coreutils <at> tlinx.org>
To: bug-coreutils <at> gnu.org
Subject: RFE: chmod "-D" operate on dir's only
Date: Tue, 24 May 2011 18:57:02 -0700
I know one can (and I usually do) construct a find command to do
this, but it's something I do so often, and it's a natural 'pair'
for what is often done with chmod.

If I want to make sure a dir tree is readable/accessable
by a group or other, I usually do:

 chmod -R g+r,o+r .
 find . -type d -print0|xargs -0 chmod g+x,o+x

What'd be a great addition to chmod is for it to have an option
for chmod to only work on dirs.  (is -D taken?)

So instead of the 2nd line above:

 chmod -DR g+x,o+x

----
What'cha think?

Is that a useful and logical addition for chmod?





[Message part 3 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Linda Walsh <coreutils <at> tlinx.org>
Cc: 8729-done <at> debbugs.gnu.org
Subject: Re: bug#8729: RFE: chmod "-D" operate on dir's only
Date: Wed, 25 May 2011 09:22:28 +0100
On 25/05/11 02:57, Linda Walsh wrote:
> I know one can (and I usually do) construct a find command to do
> this, but it's something I do so often, and it's a natural 'pair'
> for what is often done with chmod.
> 
> If I want to make sure a dir tree is readable/accessable
> by a group or other, I usually do:
> 
>  chmod -R g+r,o+r .
>  find . -type d -print0|xargs -0 chmod g+x,o+x
> 
> What'd be a great addition to chmod is for it to have an option
> for chmod to only work on dirs.  (is -D taken?)
> 
> So instead of the 2nd line above:
> 
>  chmod -DR g+x,o+x

This was discussed before (the link is down ATM):
http://lists.gnu.org/archive/html/bug-coreutils/2010-02/msg00201.html

IIRC `chmod -R go+rX .` was deemed sufficient.
That will have the caveat of making existing executables,
executable by everyone.

I'll close this for now.

thanks,
Pádraig.


This bug report was last modified 14 years and 58 days ago.

Previous Next


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