From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 11:16:05 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 9420816A46B for ; Tue, 11 Sep 2007 11:16:05 +0000 (UTC) (envelope-from cblasius@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 3721B13C47E for ; Tue, 11 Sep 2007 11:16:04 +0000 (UTC) (envelope-from cblasius@gmail.com) Received: by nf-out-0910.google.com with SMTP id k4so1042417nfd for ; Tue, 11 Sep 2007 04:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=VJYqrC2ItYd/XEo/7RcKgIa+BMU/vnW4aq0vTQf0s8Y=; b=kSlvEOBCbrZG5KlLs5bH6KmLiCNSgspIYA6W6yunIhLYZqYeAxtczZVSMWz209BiTGXUNgL+TM01un1ne6w3bLVodpZvM8FswlkYYpILeTFYE6mjA8C9gcm7QL1brx9nxdParqGgPkh7YjlB65UFD6MLJVghrtpYj7yoGywX4tk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=rgmaAd9w3lwMoujCCxkX5fsRaVbGO1ibHpKOIBx657Zidg8LgtJNhHTmv1Y2d+2aAM5EnifdN9DXQf/CuOK8lWhuB13Hlxzc875Dc7li9ff1LgFA5n0+jE1lgRS4wAn9FYsF8/YzqsH3DPVI8SjT3gvxZEwT3QblGip5mxPwoak= Received: by 10.78.160.2 with SMTP id i2mr2471909hue.1189509363277; Tue, 11 Sep 2007 04:16:03 -0700 (PDT) Received: from xdsl-5405.zgora.dialog.net.pl ( [84.40.169.29]) by mx.google.com with ESMTPS id 3sm2119896hud.2007.09.11.04.16.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2007 04:16:02 -0700 (PDT) From: Zbigniew Komarnicki To: freebsd-questions@freebsd.org Date: Tue, 11 Sep 2007 13:15:55 +0200 User-Agent: KMail/1.9.7 References: <94136a2c0709100856q768b101as96e1e6d16312d374@mail.gmail.com> In-Reply-To: <94136a2c0709100856q768b101as96e1e6d16312d374@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709111315.55658.cblasius@gmail.com> 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: Tue, 11 Sep 2007 11:16:05 -0000 On Monday 10 of September 2007 17:56:12 Zbigniew Szalbot wrote: > Hello, > > 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. Maybe also in such way: # find /usr/local/www/data/wp -type f -exec chmod 644 {} \; # chmod -R a+X /usr/local/www/data/wp of course if you have symbolic links there see for additional options in chmod command as for example -L, -P, H.