From owner-freebsd-questions Tue Aug 25 03:07:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA03670 for freebsd-questions-outgoing; Tue, 25 Aug 1998 03:07:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from coventry.ac.uk (mercury.coventry.ac.uk [193.61.107.16]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA03665 for ; Tue, 25 Aug 1998 03:07:44 -0700 (PDT) (envelope-from justin@mascarpone.coventry.ac.uk) Received: from mascarpone.coventry.ac.uk (mascarpone.coventry.ac.uk [194.66.38.77]) by coventry.ac.uk (8.8.7/8.6.11) with SMTP id LAA13037; Tue, 25 Aug 1998 11:06:45 +0100 (BST) Received: (from justin@localhost) by mascarpone.coventry.ac.uk (950413.SGI.8.6.12/950213.SGI.AUTOCF) id LAA18859; Tue, 25 Aug 1998 11:05:00 +0100 Message-Id: <199808251005.LAA18859@mascarpone.coventry.ac.uk> Date: Tue, 25 Aug 98 11:04 +0100 From: Justin Murdock Subject: Re: Group ownership To: Roman Katsnelson Cc: freebsd-questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit In-Reply-To: Roman Katsnelson's mail of Mon, 24 Aug 98 10:51 +0400 X-Mailer: Af v1.98.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > I am writing a shell script to automate some procedures. I want this > shell to be executable by root only. > > One of the things it needs to do is create some directories. But I don't > want these directories to be owned by root/wheel. While I can do chown > whatever I want, I don't know how to change the fact that it's owned by > group wheel. > > Any suggestions? chown user.group file chgrp group file To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message