now THATS exactly what I'm talking about. Nice job Skip!
Mark
On Wed, 9 May 2001 [EMAIL PROTECTED] wrote:
>
> Michael> As far as I know, unless you write some kind of script, there
> Michael> is no easy way to change just the permissions on the
> Michael> directories without affecting the files under each directory.
>
> How about this:
>
> # make all files in /var/www owned by apache:apache
> chown -R apache:apache /var/www
>
> # mark all directories in that tree mode 755
> find /var/www -type d | xargs chmod 755
>
> # mark all plain files mode 644
> find /var/www -type f | xargs chmod 644
>
> # display any files that aren't plain files or directories
> find /var/www '!' -type d -a '!' -type f
>
> I guess that qualifies as a script. Slap a shebang on it and away you go...
>
> --
> Skip Montanaro ([EMAIL PROTECTED])
> (847)971-7098
>