From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 17:38:15 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE44216A417 for ; Mon, 10 Sep 2007 17:38:15 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from exhub015-1.exch015.msoutlookonline.net (exhub015-1.exch015.msoutlookonline.net [207.5.72.93]) by mx1.freebsd.org (Postfix) with ESMTP id A6CEE13C46C for ; Mon, 10 Sep 2007 17:38:15 +0000 (UTC) (envelope-from philip@ridecharge.com) Received: from philip.hq.rws (74.93.213.161) by smtpx15.msoutlookonline.net (207.5.72.103) with Microsoft SMTP Server (TLS) id 8.0.730.1; Mon, 10 Sep 2007 10:38:14 -0700 Message-ID: <46E58105.4000200@ridecharge.com> Date: Mon, 10 Sep 2007 13:38:13 -0400 From: "Philip M. Gollucci" Organization: Rideray Inc. User-Agent: Thunderbird 2.0.0.4 (X11/20070703) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <94136a2c0709100856q768b101as96e1e6d16312d374@mail.gmail.com> <20070910160607.GA20159@catflap.slightlystrange.org> <20070910161006.GB20159@catflap.slightlystrange.org> <20070910173609.GC20159@catflap.slightlystrange.org> In-Reply-To: <20070910173609.GC20159@catflap.slightlystrange.org> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: chmod / files and directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 17:38:16 -0000 Daniel Bye wrote: > On Mon, Sep 10, 2007 at 10:01:35PM +0530, Shantanoo Mahajan wrote: >> # find /usr/local/www/data/wp -type f -exec chmod 644 '{}' \; >> # find /usr/local/www/data/wp -type d -exec chmod 755 '{}' \; >> >> To be on safer side. :) > > Oh? Safer how? I've never come across that idiom before. If imange the file or directory name has spaces, (){}-, etc.. in it or even \. > > Cheers, > > Dan > -- ------------------------------------------------------------------------ Philip M. Gollucci (philip@riderway.com) 323.219.4708 Senior System Admin - Riderway, Inc. http://riderway.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching.