Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Allow shared write access to any directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Allow shared write access to any directory
Authored by: aliensub on Jan 11, '06 09:17:06AM
Great article. Been waiting for something like this for a long time! It seems a line is wrong in the article:
sudo find /Users/Shared -type d -exec chmod  g+s {} ;
Should be:
sudo find /Users/Shared -type d -exec chmod  g+s {} ";"


[ Reply to This | # ]
Allow shared write access to any directory
Authored by: mtimmsj on Jan 11, '06 10:22:40AM
Traditionally the semicolon is escaped by a backslash. So the command as I learned it and as I would run it would be:
sudo find /Users/Shared -type d -exec chmod  g+s {} \;
Either way works though. The original command in the tip would fail with an error from find about there being no terminating semicolon. Good catch.

[ Reply to This | # ]
Allow shared write access to any directory
Authored by: jdsmith on Jan 11, '06 11:07:03AM

My submitted hint had:

% sudo find /Users/Shared -type d -exec chmod g+s \{} \;

but the backslashes were removed. Hopefully those can be repaired.



[ Reply to This | # ]
g+s is not necessary
Authored by: Ptitboul on Jan 13, '06 04:52:28AM

On MacOSX (and other BSD unix), groups are always inherited from the parent directory. g+s is a SystemV technique.



[ Reply to This | # ]