> Any new subdirectories created by the users will automatically have the > sgid bit set. Unfortunately, it's not simple to automatically recurse > all the directories and set the sgid bit. But a oneline bash command > will do it for you: > ls -R | grep ":$" | sed 's#:$##' | awk '{print "\""$0"\""}' | xargs chmod g+s > > Work through the logic and it will start to make sense. The awk > statement is included for the sole purpose of putting quotes around the > name incase it contains spaces or funky characters.
Although I think this would be much cleaner to use... find /var/www -type d -exec chmod g+s {} \; Thanks... Dan.
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com