From owner-freebsd-questions@FreeBSD.ORG Wed May 7 12:43:20 2008 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 B78621065671 for ; Wed, 7 May 2008 12:43:20 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 852958FC19 for ; Wed, 7 May 2008 12:43:20 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: by wf-out-1314.google.com with SMTP id 28so238534wfa.7 for ; Wed, 07 May 2008 05:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=Pxa4JfoGrbNHfHI3SPtbe7ROAUeYQhEyI+t7tcGgxI4=; b=C6ZnOolJlQ8my2fVhTy2fzUro2UjhrVwKvHzPImLANwvkIf7yehjQvgdD4K6VHQqg2ONusi7VCL8SZZ9kunAgTeDC6k0S4BieNj3ONVwwX5QDn1sF/7msvhATQMkQBu9tPWjZ0BcC7hEOkxzgRBIuf34u6LZzrWzYfkRDYDlVcY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=shMApYsMT8fC8QJEezfEl45QFiVSx0qVT1i4GBEf1VdLpxsD50IVuUe27qr3ZoRHJzyunnTTfU/4pBgWjp8Gu/izoZR1T+3MdClgoyBohJ2tw1WEmpMwI0QrbD0/yLo43pwpepOzOlpdfthH1/yOLv3TioVZj00WtY+/+BNfNgk= Received: by 10.143.164.19 with SMTP id r19mr837767wfo.179.1210162513570; Wed, 07 May 2008 05:15:13 -0700 (PDT) Received: by 10.143.123.2 with HTTP; Wed, 7 May 2008 05:15:13 -0700 (PDT) Message-ID: <27dbfc8c0805070515n7af87970s8ebbab6d14c8eccc@mail.gmail.com> Date: Wed, 7 May 2008 14:15:13 +0200 From: "Valerio Daelli" To: z.szalbot@lc-words.com In-Reply-To: <482198FA.8070708@lc-words.com> MIME-Version: 1.0 References: <482198FA.8070708@lc-words.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: chmod operation on directories / files 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: Wed, 07 May 2008 12:43:20 -0000 Try with find -type d -exec chmod 755 {} \; find -type f -exec chmod 644 {} \; Bye Valerio Daelli On Wed, May 7, 2008 at 1:56 PM, Zbigniew Szalbot wrote: > Hello, > > How do I chmod separately files and directories? > > If I use chmod -R 644 then it will go through all the subdirectories > assigning everything 644 permissions, directories including. > > Many thanks! > > -- > Zbigniew Szalbot > www.lc-words.com >