Date: Wed, 07 May 2008 16:17:12 +0200 From: Julien Cigar <jcigar@ulb.ac.be> To: z.szalbot@lc-words.com Cc: freebsd-questions@freebsd.org Subject: Re: chmod operation on directories / files Message-ID: <1210169832.2585.3.camel@frodon.be-bif.ulb.ac.be> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1210169832.2585.3.camel>
