Re: Annoying sudo change?

2008-12-12 Thread Tom Horsley
On Fri, 12 Dec 2008 22:29:44 +1030 Tim wrote: Using the full path to commands has always been common advice for including them in scripts. Sure, there are probably times when that has it's problems, too. But nothing's perfect. Until you try to run the same script on a distro like ubuntu

Re: Annoying sudo change?

2008-12-12 Thread Tim
On Thu, 2008-12-11 at 23:56 -0500, Steven W. Orr wrote: Regardless, what sort of suggestion does anyone have to allow Tom to do what he wants? Using the full path to commands has always been common advice for including them in scripts. Sure, there are probably times when that has it's

Re: Annoying sudo change?

2008-12-12 Thread Mikkel L. Ellertson
Tom Horsley wrote: Shouldn't proper security dictate that root's login PATH be just as restricted as sudo's built-in PATH? :-). Root's login path is not fixed, but it built when root logs in. When actually running as root, you may want automatic access to directories that you do not want on

Annoying sudo change?

2008-12-11 Thread Tom Horsley
Is there some way to make sudo pay attention to my $PATH (or even root's $PATH)? I have a program named mountie in /usr/local/bin I have /usr/local/bin in my $PATH. If I login as root, I also see /usr/local/bin in root's $PATH, yet the command: sudo mountie fails, while the command: sudo

Re: Annoying sudo change?

2008-12-11 Thread Steve
Hello Tom, On Thu 11/12/08 6:16 PM , Tom Horsley [EMAIL PROTECTED] sent: Is there some way to make sudo pay attention to my $PATH (or even root's $PATH)? I've not had to bother with doing something like this, but a quick glance at the '/etc/sudoers' file shows a parameter for 'env_keep'

Re: Annoying sudo change?

2008-12-11 Thread Todd Zullinger
Tom Horsley wrote: Is there some way to make sudo pay attention to my $PATH (or even root's $PATH)? I'm not sure if you can now. Sudo is compiled with the --secure-path option in F10. There was a thread on fedora-devel about this a few weeks ago. I don't recall any solution to your question

Re: Annoying sudo change?

2008-12-11 Thread Mikkel L. Ellertson
Steve wrote: Hello Tom, On Thu 11/12/08 6:16 PM , Tom Horsley [EMAIL PROTECTED] sent: Is there some way to make sudo pay attention to my $PATH (or even root's $PATH)? I've not had to bother with doing something like this, but a quick glance at the '/etc/sudoers' file shows a parameter

Re: Annoying sudo change?

2008-12-11 Thread Tom Horsley
On Thu, 11 Dec 2008 08:52:07 -0500 Todd Zullinger wrote: I'm not sure if you can now. Sudo is compiled with the --secure-path option in F10. Well, I can always rebuild from source without it :-). There is still some kind of bug, so I submitted this:

Re: Annoying sudo change?

2008-12-11 Thread Marc Wilson
On Thu, Dec 11, 2008 at 07:46:39AM -0500, Tom Horsley wrote: Is there some way to make sudo pay attention to my $PATH (or even root's $PATH)? Sudo sanitizing the path is always a good thing, and should be enabled by default. How can I get the old behavior back so I don't have to individually

Re: Annoying sudo change?

2008-12-11 Thread Steven W. Orr
On Thursday, Dec 11th 2008 at 21:01 -, quoth Marc Wilson: =On Thu, Dec 11, 2008 at 07:46:39AM -0500, Tom Horsley wrote: = Is there some way to make sudo pay attention to my $PATH = (or even root's $PATH)? = =Sudo sanitizing the path is always a good thing, and should be enabled by =default. =

Re: Annoying sudo change?

2008-12-11 Thread Tom Horsley
On Thu, 11 Dec 2008 23:56:17 -0500 (EST) Steven W. Orr wrote: Let's say for arguments sake that you're correct. Regardless, what sort of suggestion does anyone have to allow Tom to do what he wants? Yes he may be doing it wrong, but right now he's not doing it at all. Actually, I just

Re: Annoying sudo change?

2008-12-11 Thread Peter Kim
Did you try sudo su -? sudo su - is equivalent to su - which is a login shell. On Fri, Dec 12, 2008 at 12:10 AM, Tom Horsley tom.hors...@att.net wrote: On Thu, 11 Dec 2008 23:56:17 -0500 (EST) Steven W. Orr wrote: Let's say for arguments sake that you're correct. Regardless, what sort of