emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#8729: closed (RFE: chmod "-D" operate on dir's o


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#8729: closed (RFE: chmod "-D" operate on dir's only)
Date: Wed, 25 May 2011 08:26:02 +0000

Your message dated Wed, 25 May 2011 09:22:28 +0100
with message-id <address@hidden>
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
address@hidden)


-- 
8729: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8729
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: RFE: chmod "-D" operate on dir's only Date: Tue, 24 May 2011 18:57:02 -0700 User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
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?






--- End Message ---
--- Begin Message --- Subject: Re: bug#8729: RFE: chmod "-D" operate on dir's only Date: Wed, 25 May 2011 09:22:28 +0100 User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]