From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 16:10:09 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 CB61916A417 for ; Mon, 10 Sep 2007 16:10:09 +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 6F55313C45E for ; Mon, 10 Sep 2007 16:10:09 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: by catflap.slightlystrange.org (Postfix, from userid 1001) id DA0A161A1; Mon, 10 Sep 2007 17:10:07 +0100 (BST) Date: Mon, 10 Sep 2007 17:10:07 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20070910161006.GB20159@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <94136a2c0709100856q768b101as96e1e6d16312d374@mail.gmail.com> <20070910160607.GA20159@catflap.slightlystrange.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <20070910160607.GA20159@catflap.slightlystrange.org> 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 16:10:09 -0000 --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 10, 2007 at 05:06:07PM +0100, Daniel Bye wrote: > On Mon, Sep 10, 2007 at 05:56:12PM +0200, Zbigniew Szalbot wrote: > > Hello, > >=20 > > I did read man chmod but I am not really wiser. Is there an option to > > recursively set 755 permissions for directories and 644 for files? > > When I just issue > > chmod -R 755 /usr/local/www/data/wp/ > > then all files and directories under wp/ are given permissions 755 > > which is not what I want. > > I can do it manually but since there are manyt subdirectories I > > thought I would make my life easier. Many thanks in advance! =20 Sorry, that *should* have been: # find /usr/local/www/data/wp -type d -exec chmod 755 {} \; # find /usr/local/www/data/wp -type f -exec chmod 644 {} \; But I guess you would have realised that! 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 --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG5Wxdixf5fBYiFmoRAlhUAJ44Q2Slu4IRbLp5F3RDcEZFpp2RugCgv0c9 EqcWQual4kswRlCLeC/P778= =D3qb -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--