From owner-freebsd-questions Wed Apr 29 01:48:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA28497 for freebsd-questions-outgoing; Wed, 29 Apr 1998 01:48:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.ucb.crimea.ua (relay.ucb.crimea.ua [194.93.177.113]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA28476 for ; Wed, 29 Apr 1998 01:48:06 -0700 (PDT) (envelope-from ru@ucb.crimea.ua) Received: (from ru@localhost) by relay.ucb.crimea.ua (8.8.8/8.8.8) id LAA04380; Wed, 29 Apr 1998 11:47:54 +0300 (EEST) (envelope-from ru) Message-ID: <19980429114754.A4272@ucb.crimea.ua> Date: Wed, 29 Apr 1998 11:47:54 +0300 From: Ruslan Ermilov To: freebsd-questions@FreeBSD.ORG Subject: Re: chmod 644 for reg files and chmod 755 for directories? Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <3.0.5.32.19980428224414.0097acc0@mail.falconsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91i 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 X-Operating-System: FreeBSD 2.2.6-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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