chmod equivalent to find commands

Dan Nelson dnelson at allantgroup.com
Sat Mar 12 09:49:15 PST 2005


In the last episode (Mar 12), Fafa Diliha Romanova said:
> i know there's an equivalent to these two find commands that
> can be summed up in one chmod command:
> 
> find . -type d -exec chmod 755 {} \;
> find . -type f -exec chmod 644 {} \;
> 
> it fixes my permissions ...
> i haven't tested this yet but i think it's wrong: chmod -R u+rwX,a+rX

That chmod command should work just fine.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list