bug#8729: RFE: chmod "-D" operate on dir's only (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Linda Walsh |
---|---|
Subject: | bug#8729: 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?
- bug#8729: RFE: chmod "-D" operate on dir's only,Linda Walsh <=
- bug#8729: RFE: chmod "-D" operate on dir's only, Pádraig Brady, 2011/05/25
- bug#8729: RFE: chmod "-D" operate on dir's only, Eric Blake, 2011/05/25
* bug#8729: RFE: chmod "-D" operate on dir's only, Linda Walsh, 2011/05/25
- Prev by Date:bug#8728: test 'stat-free-color' failed (latest git version v8.12-42-g7d44751)
- Next by Date:bug#8728: test 'stat-free-color' failed (latest git version v8.12-42-g7d44751)
- Previous by thread:bug#8728: test 'stat-free-color' failed (latest git version v8.12-42-g7d44751)
- Next by thread:bug#8729: RFE: chmod "-D" operate on dir's only
- Index(es):