Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 01:35:13 -0700
From:      brian@worldcontrol.com
To:        Tim Gustafson <guff@falconsoft.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: chmod 644 for reg files and chmod 755 for directories?
Message-ID:  <19980429013513.A6209@top.worldcontrol.com>
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 %M 0, Tim Gustafson <guff@falconsoft.com> 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 <brian@litzinger.com>

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?19980429013513.A6209>