Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 11:47:54 +0300
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: chmod 644 for reg files and chmod 755 for directories?
Message-ID:  <19980429114754.A4272@ucb.crimea.ua>
In-Reply-To: <3.0.5.32.19980428224414.0097acc0@mail.falconsoft.com>; from Tim Gustafson on Tue, Apr 28, 1998 at 10:44:14PM -0400
References:  <3.0.5.32.19980428224414.0097acc0@mail.falconsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 28, 1998 at 10:44:14PM -0400, Tim Gustafson wrote:
> is there a utility that'll go through a given directory structure and
> change all regular files to mode 644 and directories to 755? (or some other
> mode that I can specify?)
> 
> thanks!
> 
> tim

find directory -type d | xargs -n1 chmod 755; \
find directory -type f | xargs -n1 chmod 644

-- 
Ruslan Ermilov          System Administrator
ru@ucb.crimea.ua        United Commercial Bank
+380-652-247647         Simferopol, Crimea
2426679                 ICQ Network, UIN

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980429114754.A4272>