From owner-freebsd-questions@FreeBSD.ORG Thu Apr 8 22:55:16 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 36C5216A610 for ; Thu, 8 Apr 2004 22:55:16 -0700 (PDT) Received: from mail.mi.celestial.com (dagney.celestial.com [192.136.111.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED15A43D58 for ; Thu, 8 Apr 2004 22:55:15 -0700 (PDT) (envelope-from bill@celestial.com) Received: by mail.mi.celestial.com (Postfix, from userid 203) id 412BC11E8AE; Thu, 8 Apr 2004 22:55:15 -0700 (PDT) Date: Thu, 8 Apr 2004 22:55:15 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20040409055515.GA50737@alexis.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <000501c41df5$519419f0$0200a8c0@satellite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000501c41df5$519419f0$0200a8c0@satellite> User-Agent: Mutt/1.4.1i Subject: Re: changing directory permissions recursively X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 05:55:16 -0000 On Fri, Apr 09, 2004, dave wrote: >Hello, > I've got a problem, a directory area has the wrong permissions, occurred >from a dump restore. Now my user's can't get to the files within the area. I >could go around and do chmod permissions directoryname, but i was wondering >if there was a perl or shell script that would do this? cd $topdir find . -type d | xargs chmod 755 Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Everybody is ignorant, only on different subjects.'' Will Rogers