[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Shortcut for recursive change of directories' SGID
From: |
Reuti |
Subject: |
Shortcut for recursive change of directories' SGID |
Date: |
Tue, 14 Feb 2017 12:48:11 +0100 |
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)
-- Reuti
signature.asc
Description: Message signed with OpenPGP using GPGMail
- Shortcut for recursive change of directories' SGID,
Reuti <=