Daniel Woods wrote on Tue, Sep 24, 2002 at 10:46:22AM -0600 :
>
> > 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 {} \;
Does it work if the directory name or path contains spaces? I am unable
to test at the moment (short on time).
Blue skies... Todd
--
MandrakeSoft USA http://www.mandrakesoft.com
Never take no as an answer from someone who's not authorized to say yes.
--Ben Reser on Cooker ML
Cooker Version mandrake-release-9.0-0.3mdk Kernel 2.4.19-12mdk
msg58018/pgp00000.pgp
Description: PGP signature
