[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shortcut for recursive change of directories' SGID
From: |
Pádraig Brady |
Subject: |
Re: Shortcut for recursive change of directories' SGID |
Date: |
Mon, 27 Feb 2017 00:56:48 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 14/02/17 03:48, Reuti wrote:
> Hi,
>
> the usual approach to change recursively the SGID bits of directories only
> seems to be:
>
> find -type d -print0 | xargs -0 -r chmod g+s
>
> to avoid that files will it get assigned too. Was there ever the idea to have
> a shortcut for it like:
>
> chmod -R g+S (set SGID bit for directories only)
> chmod -D g+s (--dir-recursive do it recursively like -R, but work on
> directories only)
These were previously discussed at:
https://www.gnu.org/software/coreutils/rejected_requests.html#chmod
thanks,
Pádraig