Hi Rick and all,

The problem appears to be that for some reason, sudo doesn't put the /usr/sbin and 
/sbin directories in the path.
That means that if I do the following:

sudo [command]

where command is in /sbin or /usr/sbin, I get a message that says 

sudo:  [command] not found

I am using the /etc/sudoers file that comes with emerging sudo, with the line 
uncommented that allows users in the wheel group to run commands as root with their 
passwords, and the user is in the wheel group.  What am I missing?

William

On Mon, Mar 31, 2003 at 12:43:25PM -0500, Ric Messier wrote:
> that's what su is for
> 
> Ric
> 
> ----- Original Message -----
> From: "William Hubbs" <[EMAIL PROTECTED]>
> To: "Gentoo Users" <[EMAIL PROTECTED]>
> Sent: Monday, March 31, 2003 11:54 AM
> Subject: [gentoo-user] sudo not running a shell as a login shell
> 
> 
> > Hi all,
> >
> > is there a way to get sudo to run a shell with the -s option as a login
> shell?
> > I ask because when I give the command
> >
> > sudo -s
> >
> > and enter a password, I become root, but not with root's environment, so
> /sbin,
> > /usr/sbin, etc, are not in the path.
> >
> > Thanks,
> >
> > William
> >
> >
> > --
> > [EMAIL PROTECTED] mailing list
> >
> >
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 

--
[EMAIL PROTECTED] mailing list

Reply via email to