>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