From owner-freebsd-questions Wed Apr 29 01:40:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA27101 for freebsd-questions-outgoing; Wed, 29 Apr 1998 01:40:51 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from top.worldcontrol.com (surf52.cruzers.com [205.215.232.52]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA27096 for ; Wed, 29 Apr 1998 01:40:47 -0700 (PDT) (envelope-from brian@worldcontrol.com) From: brian@worldcontrol.com Received: (qmail 6243 invoked by uid 100); 29 Apr 1998 08:35:17 -0000 Message-ID: <19980429013513.A6209@top.worldcontrol.com> Date: Wed, 29 Apr 1998 01:35:13 -0700 To: Tim Gustafson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: chmod 644 for reg files and chmod 755 for directories? Mail-Followup-To: Tim Gustafson , 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On %M 0, 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?) cd dir find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; -- Brian Litzinger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message