From owner-freebsd-questions@FreeBSD.ORG Tue Sep 6 23:47:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 933D7106566B for ; Tue, 6 Sep 2011 23:47:30 +0000 (UTC) (envelope-from beech@freebsd.org) Received: from bsdevel2.freebsdnorth.com (unknown [IPv6:2001:470:7:d77::2]) by mx1.freebsd.org (Postfix) with ESMTP id 66A0E8FC17 for ; Tue, 6 Sep 2011 23:47:30 +0000 (UTC) Received: from maximum3.maximumdata.biz (akbeech-2-pt.tunnel.tserv14.sea1.ipv6.he.net [IPv6:2001:470:a:2e9::2]) by bsdevel2.freebsdnorth.com (Postfix) with ESMTP id 034FEC3B07 for ; Mon, 5 Sep 2011 23:39:44 +0000 (UTC) From: Beech Rintoul Organization: FreeBSD To: freebsd-questions@freebsd.org Date: Tue, 6 Sep 2011 15:47:27 -0800 User-Agent: KMail/1.13.7 (FreeBSD/9.0-BETA2; KDE/4.6.5; i386; ; ) References: <4E6640F0.5060902@a1poweruser.com> <4E664F1C.5050702@infracaninophile.co.uk> <4E66A92C.8030406@a1poweruser.com> In-Reply-To: <4E66A92C.8030406@a1poweruser.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109061547.28019.beech@freebsd.org> Subject: Re: wheel group & mkdir X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 23:47:30 -0000 On Tuesday 06 September 2011 15:13:48 Fbsd8 wrote: > Matthew Seaman wrote: > > On 06/09/2011 16:49, Fbsd8 wrote: > >> I have a user that belongs to the wheel group but when the user tries to > >> issue mkdir command it gets a permission denied error. > >> > >> How do I fix this? > > > > Make the directory that contains where your user is trying to create a > > new subdirectory writable by group wheel. Either that, or teach your > > user to use su(1) or sudo(1) so they can mkdir as root. (Adding users > > to group wheel so they are permitted to run su(1) is a BSD-ism, and is > > the usual reason for adding anyone to wheel.) > > > > Cheers, > > > > Matthew > > Matthew > Thanks for your reply. I have a user id that is in the wheel group. I > su and get prompted for the user id's password after which I get > returned to the command line. Running the script with the mkdir command > embedded still returns Permission Denied message. I have read the su man > page to no joy. Could you please explain the sequence of events to get > su to work. user# su Pass: root password root# Beech -- --------------------------------------------------------------------------------------- Beech Rintoul - FreeBSD Developer - beech@FreeBSD.org /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://people.freebsd.org/~beech X - NO Word docs in e-mail | Skype: akbeech / \ - http://www.FreeBSD.org/releases/8.2R/announce.html ---------------------------------------------------------------------------------------