From owner-freebsd-questions@FreeBSD.ORG Wed May 7 12:20:36 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 162F41065688 for ; Wed, 7 May 2008 12:20:36 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) Received: from smtp.ulb.ac.be (mxout.ulb.ac.be [164.15.128.111]) by mx1.freebsd.org (Postfix) with ESMTP id 96BBE8FC38 for ; Wed, 7 May 2008 12:20:35 +0000 (UTC) (envelope-from jcigar@ulb.ac.be) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYBAD45IUikD30E/2dsb2JhbAAIrHY Received: from bebif01.ulb.ac.be (HELO [10.0.0.194]) ([164.15.125.4]) by smtp.ulb.ac.be with ESMTP; 07 May 2008 14:09:51 +0200 From: Julien Cigar To: z.szalbot@lc-words.com In-Reply-To: <1210169657.2585.1.camel@frodon.be-bif.ulb.ac.be> References: <482198FA.8070708@lc-words.com> <1210169657.2585.1.camel@frodon.be-bif.ulb.ac.be> Content-Type: text/plain; charset=utf-8 Date: Wed, 07 May 2008 16:17:12 +0200 Message-Id: <1210169832.2585.3.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:20:36 -0000 sorry.. | xargs chmod instead of | xargs | chmod ... On Wed, 2008-05-07 at 16:14 +0200, Julien Cigar wrote: > 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