From owner-freebsd-questions Mon Aug 24 08:10:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA07763 for freebsd-questions-outgoing; Mon, 24 Aug 1998 08:10:11 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from numeri.campus.luth.se (numeri.campus.luth.se [130.240.197.103]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA07756 for ; Mon, 24 Aug 1998 08:10:06 -0700 (PDT) (envelope-from k@numeri.campus.luth.se) Received: from numeri.campus.luth.se (localhost [127.0.0.1]) by numeri.campus.luth.se (8.8.8/8.8.8) with ESMTP id RAA16141; Mon, 24 Aug 1998 17:08:39 +0200 (CEST) (envelope-from k@numeri.campus.luth.se) Message-Id: <199808241508.RAA16141@numeri.campus.luth.se> X-Mailer: exmh version 2.0.2 2/24/98 To: Roman Katsnelson cc: "q's" Subject: Re: Group ownership In-reply-to: Your message of "Mon, 24 Aug 1998 10:51:01 EDT." <35E17DD5.2D348722@graphnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 24 Aug 1998 17:08:38 +0200 From: Johan Karlsson Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At Mon, 24 Aug 1998 10:51:01 EDT, Roman Katsnelson wrote: >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? > either chown user.group dir or chgrp group dir /K -- Johan Karlsson mailto:k@numeri.campus.luth.se SWEDEN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message