changing directory permissions recursively

Cory Petkovsek cory at adaptableit.com
Fri Apr 9 02:00:31 PDT 2004


On Fri, Apr 09, 2004 at 08:47:07AM +0200, Uwe Doering wrote:
> >cd $topdir
> >find . -type d | xargs chmod 755
> 
> In case (potentially) untrusted users have had write permission in this 
> directory tree in the past, a safer alternative would be
> 
>   find /path/to/tree/root -type d -print0 | xargs -0 chmod 755

Please explain the "safer" difference in your eyes, Uwe.  Are you thinking the
admin might have ./ in their path?

Cory

-- 
Cory Petkovsek                                       Adapting Information
Adaptable IT Consulting                                Technology to Your
(858) 705-1655                                                   Business
cory at AdaptableIT.com                                  www.AdaptableIT.com


More information about the freebsd-questions mailing list