From owner-freebsd-questions Mon Aug 24 09:49:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA26237 for freebsd-questions-outgoing; Mon, 24 Aug 1998 09:49:27 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from offline.dct.com (online.dct.com [204.29.185.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA26221 for ; Mon, 24 Aug 1998 09:49:20 -0700 (PDT) (envelope-from markm@offline.dct.com) Received: (from markm@localhost) by offline.dct.com (8.9.0.Beta5/8.8.8) id LAA22171; Mon, 24 Aug 1998 11:48:18 -0500 (CDT) From: Mark Message-Id: <199808241648.LAA22171@offline.dct.com> Subject: Re: Group ownership To: romank@graphnet.com (Roman Katsnelson) Date: Mon, 24 Aug 1998 11:48:17 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <35E17DD5.2D348722@graphnet.com> from "Roman Katsnelson" at Aug 24, 98 10:51:01 am X-Mailer: ELM [version 2.4 PL25] Content-Type: text 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? > > Thanks! > Roman 1) Did you mean you want the shell script executable by root only? That's easy: chmod 700 2) man chgrp hope that helps -- Mark Maurer markm@dct.com mwmaurer@mtu.edu Programmer, Digital Magic Interactive http://www.dminteractive.com Senior, Michigan Technological University Houghton, MI -- Views do not represent those of my employer or school To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message