I don't see the difference here. On the open bsd system, it appears that the /sbin directories are already in your path, so it isn't an issue.
With sudo the way it is, you have to type the full path to any command in the /sbin directories you want to run, but you don't have to with su (even su without the "-"). For example: [EMAIL PROTECTED] kc5eiv $ sudo lsmod sudo: lsmod: command not found [EMAIL PROTECTED] kc5eiv $ sudo /sbin/lsmod Module Size Used by Not tainted [EMAIL PROTECTED] kc5eiv $ su -c lsmod Password: Module Size Used by Not tainted So why should I have to know the path to the lsmod command to use sudo when I don't for su -c? William On Mon, Mar 31, 2003 at 05:37:00PM -0500, Ric Messier wrote: > From an OpenBSD system: > $ printenv > PATH=/home/kilroy/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/loca > l/sbin:/usr/games:. > $ sudo printenv > PATH=/home/kilroy/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/loca > l/sbin:/usr/games:. > > Debian may be an abberation and I'm not convinced there is a compelling > reason to change. > > Ric > > ----- Original Message ----- > From: "James H. Cloos Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 31, 2003 5:30 PM > Subject: Re: [gentoo-user] Re: sudo not setting the path (was sudo not > running a shell as a login shell) > > > > >> The problem appears to be that for some reason, sudo doesn't put > > >> the /usr/sbin and /sbin directories in the path. > > > > |> sudo wasn't designed to do that. > > > > That is not generally true. I have at least two boxen (with > > distribution-provided sudo installs) where sudo does result in a PATH > > that includes /sbin and /usr/sbin even though those are not in my > > account's PATH on those boxen. > > > > On a debian box: > > > > :; printenv PATH > > /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games > > :; sudo printenv PATH > > > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin > > > > OTOH, I've verified that rh7.3 does not to PATH. > > > > I'd suggest gnetoo should follow debian's precedents more than rh's > precedents.... > > > > -JimC > > > > > > -- > > [EMAIL PROTECTED] mailing list > > > > > > > -- > [EMAIL PROTECTED] mailing list > -- [EMAIL PROTECTED] mailing list