Re: sudo path

2014-07-04 Thread Chris Bannister
On Fri, Jul 04, 2014 at 11:43:05PM +1200, Chris Bannister wrote: > On Fri, Jul 04, 2014 at 09:42:31AM +0100, Tony van der Hoff wrote: > > I still don't understand why sudo works on two systems (both upgraded > > from squeeze) but not on the third (bare metal wheezy installation), but > > there you

Re: sudo path

2014-07-04 Thread Chris Bannister
On Fri, Jul 04, 2014 at 09:42:31AM +0100, Tony van der Hoff wrote: > I still don't understand why sudo works on two systems (both upgraded > from squeeze) but not on the third (bare metal wheezy installation), but > there you go. I've now applied the fix to all three, so the problem's > gone away :

Re: sudo path

2014-07-04 Thread Tony van der Hoff
On 04/07/14 09:42, Tony van der Hoff wrote: > I still don't understand why sudo works on two systems (both upgraded > from squeeze) but not on the third (bare metal wheezy installation), Hum, that's not the entire truth. I rsync'd most of /etc after installation. -- Tony van der Hoff| ma

Re: sudo path

2014-07-04 Thread Tony van der Hoff
On 03/07/14 23:01, Bob Proulx wrote: > Tony van der Hoff wrote: >> Klaus wrote: >>> Tony van der Hoff wrote: Can anyone please tell me where $PATH is set for sudo with wheezy? It seems that my sudoer has no access to /sbin on one of my machines, but does on others, with a seemin

Re: sudo path

2014-07-03 Thread Bob Proulx
Tony van der Hoff wrote: > Klaus wrote: > > Tony van der Hoff wrote: > >> Can anyone please tell me where $PATH is set for sudo with wheezy? > >> > >> It seems that my sudoer has no access to /sbin on one of my machines, > >> but does on others, with a seemingly identical installation. > >> > >> Th

Re: sudo path

2014-07-03 Thread Tony van der Hoff
On 03/07/14 13:11, Klaus wrote: > On 03/07/14 12:16, Tony van der Hoff wrote: >> Can anyone please tell me where $PATH is set for sudo with wheezy? >> >> It seems that my sudoer has no access to /sbin on one of my machines, >> but does on others, with a seemingly identical installation. >> >> Thank

Re: sudo path

2014-07-03 Thread Klaus
On 03/07/14 12:16, Tony van der Hoff wrote: > Can anyone please tell me where $PATH is set for sudo with wheezy? > > It seems that my sudoer has no access to /sbin on one of my machines, > but does on others, with a seemingly identical installation. > > Thanks, Tony. > Does your sudoers file se

sudo path

2014-07-03 Thread Tony van der Hoff
Can anyone please tell me where $PATH is set for sudo with wheezy? It seems that my sudoer has no access to /sbin on one of my machines, but does on others, with a seemingly identical installation. Thanks, Tony. -- Tony van der Hoff| mailto:t...@vanderhoff.org Buckinghamshire, England |

Re: Problems with sudo PATH

2011-12-30 Thread Steve Kreyer
Tom, thanks very much for your answer. Ok, Roger already gave me the hint with the secure_path option. However thanks for the advice with displaying sudo's PATH environment. Steve. On 29.12.2011 20:41, Tom H wrote: On Thu, Dec 29, 2011 at 11:15 AM, Steve Kreyer wrote: after an update of m

Re: Problems with sudo PATH

2011-12-29 Thread Tom H
On Thu, Dec 29, 2011 at 11:15 AM, Steve Kreyer wrote: > > after an update of my Debian system some time ago I've encountered some > problems with sudo. In particular sudo doesn't seem to recognize any > commands located in /sbin or /usr/sbin. For example the command useradd is > located in /usr/sb

Re: Problems with sudo PATH

2011-12-29 Thread Andrei Popescu
On Jo, 29 dec 11, 18:50:03, Steve Kreyer wrote: > Roger, > > thanks very much for your answer. Yes, the two lines solve the > problem. I was working with "sudo su" for days till I asked here. > Thanks for saving me further hard typing work. :-) Just for the archives: you can replace 'sudo su' wit

Re: Problems with sudo PATH

2011-12-29 Thread Steve Kreyer
Roger, thanks very much for your answer. Yes, the two lines solve the problem. I was working with "sudo su" for days till I asked here. Thanks for saving me further hard typing work. :-) Steve On 29.12.2011 17:16, Roger Leigh wrote: On Thu, Dec 29, 2011 at 05:15:19PM +0100, Steve Kreyer wr

Re: Problems with sudo PATH

2011-12-29 Thread Roger Leigh
On Thu, Dec 29, 2011 at 05:15:19PM +0100, Steve Kreyer wrote: > after an update of my Debian system some time ago I've encountered > some problems with sudo. In particular sudo doesn't seem to > recognize any commands located in /sbin or /usr/sbin. […] > What could be wrong here? Can I somehow see

Problems with sudo PATH

2011-12-29 Thread Steve Kreyer
Hi all, after an update of my Debian system some time ago I've encountered some problems with sudo. In particular sudo doesn't seem to recognize any commands located in /sbin or /usr/sbin. For example the command useradd is located in /usr/sbin and sudo fails: redwing@platon:~$ sudo usera