Date: Wed, 7 May 2008 14:15:13 +0200 From: "Valerio Daelli" <valerio.daelli@gmail.com> To: z.szalbot@lc-words.com Cc: freebsd-questions@freebsd.org Subject: Re: chmod operation on directories / files Message-ID: <27dbfc8c0805070515n7af87970s8ebbab6d14c8eccc@mail.gmail.com> In-Reply-To: <482198FA.8070708@lc-words.com> References: <482198FA.8070708@lc-words.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <z.szalbot@lc-words.com>
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
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27dbfc8c0805070515n7af87970s8ebbab6d14c8eccc>
