No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Richard R. Cahilig
Hello, I have a problem with my fedora 12 box. There is no /sbin and /usr/sbin PATH after using sudo. This is the output if I run the command echo $PATH. /usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin I tried to add the /sbin and /usr/sbin PATH in .bash_profile but I still have the same

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread suvayu ali
On 4 February 2010 15:13, Richard R. Cahilig r.cahi...@gmail.com wrote: Hello, I have a problem with my fedora 12 box. There is no /sbin and /usr/sbin PATH after using sudo. This is the output if I run the command echo $PATH. /usr/kerberos/sbin:/usr/kerberos/bin:/usr/bin:/bin I tried to add

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Tom Horsley
On Thu, 4 Feb 2010 16:00:39 -0800 suvayu ali wrote: As far as I understand this, sudo still uses your (the regular user's) $PATH. Nope, that's merely what the docs claim. In fact, the security geeks decided sudo absolutely needed to have a hard coded PATH and as far as I know the only way to

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread suvayu ali
On 4 February 2010 16:13, Tom Horsley tom.hors...@att.net wrote: On Thu, 4 Feb 2010 16:00:39 -0800 suvayu ali wrote: As far as I understand this, sudo still uses your (the regular user's) $PATH. Nope, that's merely what the docs claim. In fact, the security geeks decided sudo absolutely

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Ed Greshko
suvayu ali wrote: On 4 February 2010 16:13, Tom Horsley tom.hors...@att.net wrote: On Thu, 4 Feb 2010 16:00:39 -0800 suvayu ali wrote: As far as I understand this, sudo still uses your (the regular user's) $PATH. Nope, that's merely what the docs claim. In fact, the

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread suvayu ali
On 4 February 2010 17:14, Ed Greshko ed.gres...@greshko.com wrote: suvayu ali wrote: On 4 February 2010 16:13, Tom Horsley tom.hors...@att.net wrote: On Thu, 4 Feb 2010 16:00:39 -0800 suvayu ali wrote: As far as I understand this, sudo still uses your (the regular user's) $PATH. Nope,

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Sam Sharpe
On 5 February 2010 01:14, Ed Greshko ed.gres...@greshko.com wrote: suvayu ali wrote: On 4 February 2010 16:13, Tom Horsley tom.hors...@att.net wrote: On Thu, 4 Feb 2010 16:00:39 -0800 suvayu ali wrote: As far as I understand this, sudo still uses your (the regular user's) $PATH. Nope,

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Ed Greshko
Sam Sharpe wrote: On 5 February 2010 01:14, Ed Greshko ed.gres...@greshko.com wrote: suvayu ali wrote: On 4 February 2010 16:13, Tom Horsley tom.hors...@att.net wrote: On Thu, 4 Feb 2010 16:00:39 -0800 suvayu ali wrote: As far as I understand this, sudo still

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Tom Horsley
On Thu, 4 Feb 2010 17:08:56 -0800 suvayu ali wrote: That Bugzilla says updates have been pushed to F10. Shouldn't that mean its fixed in F11 and F12? That bugzilla just complained that sudo -V printed info that conflicted with the behavior of sudo. Apparently the update they pushed merely made

Re: No /sbin PATH after sudo in Fedora 12 even after the PATH is added in .bash_profile

2010-02-04 Thread Ed Greshko
Ed Greshko wrote: Sam Sharpe wrote: What about this then? [...@samlap ~]$ echo $PATH /usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/real/RealPlayer:/home/sam/.bin:/opt/real/RealPlayer:/home/sam/.bin