From owner-freebsd-questions@FreeBSD.ORG Tue Sep 6 23:14:25 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 E0668106564A for ; Tue, 6 Sep 2011 23:14:25 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 4A6F18FC08 for ; Tue, 6 Sep 2011 23:14:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; q=dns/txt; s=DKIM-NAME-SERVICES; d=a1poweruser.com; h=From:To:Cc:Subject:Message-ID:X-Sender:X-Envelope-From; l=500; bh=mQ+7klPxgyUQ5Q+pqCKQiqvfV5LO7+wwa+JTQ+ASp1Q=; b=ghLGlx3Rp8q9dvOilqV5fyk/YHsxma6DpD6BV26zXuw6EuTZEPtRquv2Zlyk4aXnYrjEkih/kUFjTL3Hww/SKMZJLwQqMnjVQCrI7Mrh5avbGGU0FgNhbdxlF57+UYFPQ4pUotGSpoadAEdY+J8lfoWrd7WYZXdjTD0DqraPHoE= Received: from [192.168.1.64] ([76.240.47.196]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 6 Sep 2011 16:14:21 -0700 Message-ID: <4E66A92C.8030406@a1poweruser.com> Date: Tue, 06 Sep 2011 19:13:48 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Matthew Seaman References: <4E6640F0.5060902@a1poweruser.com> <4E664F1C.5050702@infracaninophile.co.uk> In-Reply-To: <4E664F1C.5050702@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Sep 2011 23:14:22.0056 (UTC) FILETIME=[B61F6680:01CC6CEA] X-Sender: fbsd8@a1poweruser.com X-Envelope-From: fbsd8*a1poweruser.com Cc: Freebsd-questions@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:14:26 -0000 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. Thanks