From owner-freebsd-questions@FreeBSD.ORG Fri Apr 9 02:00:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10BBF16A4CE for ; Fri, 9 Apr 2004 02:00:31 -0700 (PDT) Received: from saraswati.adaptableit.com (66-27-110-27.san.rr.com [66.27.110.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFB9443D2F for ; Fri, 9 Apr 2004 02:00:30 -0700 (PDT) (envelope-from cory@adaptableit.com) Received: from vishnu.adaptableit.com (vishnu.adaptableit.com [192.168.1.6]) i398twU05054; Fri, 9 Apr 2004 01:55:58 -0700 (PDT) Received: (from cory@localhost) by vishnu.adaptableit.com (8.12.10/8.12.10/Submit) id i3993qav003166; Fri, 9 Apr 2004 02:03:52 -0700 (PDT) (envelope-from cory) Date: Fri, 9 Apr 2004 02:03:51 -0700 From: Cory Petkovsek To: Uwe Doering Message-ID: <20040409090351.GB3094@adaptableit.com> References: <000501c41df5$519419f0$0200a8c0@satellite> <20040409055515.GA50737@alexis.mi.celestial.com> <407646EB.7020708@geminix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <407646EB.7020708@geminix.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-questions@freebsd.org Subject: Re: changing directory permissions recursively X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 09:00:31 -0000 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