From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 17:45:00 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 8B2AC16A417 for ; Mon, 10 Sep 2007 17:45:00 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc5-cmbg1-0-0-cust497.cmbg.cable.ntl.com [86.6.1.242]) by mx1.freebsd.org (Postfix) with ESMTP id 28E0313C48E for ; Mon, 10 Sep 2007 17:45:00 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: by catflap.slightlystrange.org (Postfix, from userid 1001) id 50C45685B; Mon, 10 Sep 2007 18:44:59 +0100 (BST) Date: Mon, 10 Sep 2007 18:44:57 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20070910174457.GD20159@catflap.slightlystrange.org> Mail-Followup-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> <46E58105.4000200@ridecharge.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hxkXGo8AKqTJ+9QI" Content-Disposition: inline In-Reply-To: <46E58105.4000200@ridecharge.com> User-Agent: Mutt/1.4.2.3i Subject: Re: chmod / files and directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2007 17:45:00 -0000 --hxkXGo8AKqTJ+9QI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 10, 2007 at 01:38:13PM -0400, Philip M. Gollucci wrote: > 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. :) > >=20 > > 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 \. Ah, I see. Yes, makes sense. Cheers. Dan --=20 Daniel Bye PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc PGP Key fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A --hxkXGo8AKqTJ+9QI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG5YKZixf5fBYiFmoRAiL9AKCsTD9rW/+cvhqRJQTqsaRArrjUWACgqNMg zrK9Dx1UOzd+m7SdtBXM6tI= =dRLh -----END PGP SIGNATURE----- --hxkXGo8AKqTJ+9QI--