[K12OSN] Script help
Henning Wangerin
mailinglists-after-041101_reply-not-possible at hpc.dk
Fri Mar 18 12:12:06 UTC 2005
On Fri, 2005-03-18 at 13:03, mrok12osn at eastgranby.k12.ct.us wrote:
> I need to walk a directory tree and issue a
>
> chmod u=rwx,g=rwxs,o-rwx
> on all (sub)directories, but not files, in the tree. Can anyone help? I
> am pretty script illiterate.
Just du a
find /dir/to/start/in -type d -exec chmod u=rwx,g=rwxs,o-rw \{\} \;
That's it.
If you watnt to list the dirs before doing it, skip the -exec..... part:
find /dir/to/start/in -type d
--
Henning Wangerin <mailinglists-after-041101_reply-not-possible at hpc.dk>
More information about the K12OSN
mailing list