From owner-freebsd-questions@FreeBSD.ORG Wed May 7 12:25:56 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 155951065675 for ; Wed, 7 May 2008 12:25:56 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) Received: from smtp.vub.ac.be (smtp.vub.ac.be [134.184.129.111]) by mx1.freebsd.org (Postfix) with ESMTP id 9997E8FC28 for ; Wed, 7 May 2008 12:25:55 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYBALo4IUikD30E/2dsb2JhbAAIrHY Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.vub.ac.be with ESMTP; 07 May 2008 14:06:56 +0200 From: Julien Cigar To: z.szalbot@lc-words.com In-Reply-To: <482198FA.8070708@lc-words.com> References: <482198FA.8070708@lc-words.com> Content-Type: text/plain; charset=utf-8 Date: Wed, 07 May 2008 16:14:17 +0200 Message-Id: <1210169657.2585.1.camel@frodon.be-bif.ulb.ac.be> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 Content-Transfer-Encoding: 8bit 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:25:56 -0000 find your_dir -type (f|d) | xargs | chmod ... or find your_dir -type (f|d) -exec chmod {} \; On Wed, 2008-05-07 at 13:56 +0200, 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! > -- Julien Cigar Belgian Biodiversity Platform http://www.biodiversity.be Université Libre de Bruxelles (ULB) Campus de la Plaine CP 257 Bâtiment NO, Bureau 4 N4 115C (Niveau 4) Boulevard du Triomphe, entrée ULB 2 B-1050 Bruxelles Mail: jcigar@ulb.ac.be @biobel: http://biobel.biodiversity.be/person/show/471 Tel : 02 650 57 52