Date: Fri, 9 Apr 2004 02:03:51 -0700 From: Cory Petkovsek <cory@adaptableit.com> To: Uwe Doering <gemini@geminix.org> Cc: freebsd-questions@freebsd.org Subject: Re: changing directory permissions recursively Message-ID: <20040409090351.GB3094@adaptableit.com> In-Reply-To: <407646EB.7020708@geminix.org> References: <000501c41df5$519419f0$0200a8c0@satellite> <20040409055515.GA50737@alexis.mi.celestial.com> <407646EB.7020708@geminix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@AdaptableIT.com www.AdaptableIT.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040409090351.GB3094>