From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 17:49:14 2005 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 DA28D16A4CE for ; Sat, 12 Mar 2005 17:49:14 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61CB143D48 for ; Sat, 12 Mar 2005 17:49:14 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j2CHnB0X029766; Sat, 12 Mar 2005 11:49:11 -0600 (CST) (envelope-from dan) Date: Sat, 12 Mar 2005 11:49:11 -0600 From: Dan Nelson To: Fafa Diliha Romanova Message-ID: <20050312174910.GB29768@dan.emsphone.com> References: <20050312115359.C14EF4BE6D@ws1-1.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050312115359.C14EF4BE6D@ws1-1.us4.outblaze.com> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: questions@freebsd.org Subject: Re: chmod equivalent to find commands 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: Sat, 12 Mar 2005 17:49:15 -0000 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@allantgroup.com