Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Sep 2011 09:51:10 -0800
From:      Beech Rintoul <beech@freebsd.org>
To:        Fbsd8 <fbsd8@a1poweruser.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: wheel group & mkdir
Message-ID:  <201109070951.10456.beech@freebsd.org>
In-Reply-To: <4E66B8A7.2010401@a1poweruser.com>
References:  <4E6640F0.5060902@a1poweruser.com> <201109061547.28019.beech@freebsd.org> <4E66B8A7.2010401@a1poweruser.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tuesday 06 September 2011 16:19:51 Fbsd8 wrote:
> Beech Rintoul wrote:
> > 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
> 
> Thank you Beech.
> I was entering the password of the user.
> When I entered root's password the script containing mkdir worked.
> 
> One remaining question. Is there any time limit on having root access?
> I mean will root access remain until the user exits?

Yes, the shell will remain root until you either logout (it will go back to 
user) or close the shell.

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
---------------------------------------------------------------------------------------






Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201109070951.10456.beech>