Date: Tue, 11 Sep 2007 13:15:55 +0200 From: Zbigniew Komarnicki <cblasius@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: chmod / files and directories Message-ID: <200709111315.55658.cblasius@gmail.com> In-Reply-To: <94136a2c0709100856q768b101as96e1e6d16312d374@mail.gmail.com> References: <94136a2c0709100856q768b101as96e1e6d16312d374@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 10 of September 2007 17:56:12 Zbigniew Szalbot wrote:
> Hello,
>
> I did read man chmod but I am not really wiser. Is there an option to
> recursively set 755 permissions for directories and 644 for files?
> When I just issue
> chmod -R 755 /usr/local/www/data/wp/
> then all files and directories under wp/ are given permissions 755
> which is not what I want.
Maybe also in such way:
# find /usr/local/www/data/wp -type f -exec chmod 644 {} \;
# chmod -R a+X /usr/local/www/data/wp
of course if you have symbolic links there see for additional options in chmod
command as for example -L, -P, H.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709111315.55658.cblasius>
