recursive chmod

Ben Pfaff pfaffben@msu.edu
27 Nov 2000 17:01:49 -0500


Edward Glowacki <glowack2@msu.edu> writes:

> find / -type d -exec chmod 0755 {};
> find / -type f -exec chmod 0644 {};

Or, if you have GNU tools, the following is safer:

	find / -type d -print0 | xargs -0 chmod --
-- 
Anyone who cannot cope with mathematics is not fully human.  At best he
is a tolerable subhuman who has learned to wear shoes, bathe and not
make messes in the house.
                -- Lazarus Long, "Time Enough for Love"