[sudo-users] Strange behavior when execute bit is missing

Josef Wolf jw at raven.inka.de
Tue Apr 25 01:42:56 EDT 2006


On Mon, Apr 24, 2006 at 03:46:31PM -0600, Bob Proulx wrote:

>>>>  naclt ALL = NOPASSWD: /usr/local/bin/naclient
>>>>  ssh -i foobar naclt at host.do.main sudo /usr/local/bin/naclient params
>>>> BTW: this is sudo-1.6.8p7 on debian sarge.
> 
> I don't see that with my installation of Debian Sarge stable. (shrug)
> Unless someone else has ideas I think you will need to dig into it
> deeper to figure out more.  But I get "command not found" when I try
> it.  I find it very strange that your system and mine are producing
> different results.  I think they should behave the same.

What source user are you using when you try this?
Maybe it differs because of the other entries in the sudoers file?
The above line is the only one in my sudoers.

> Try using strace.
> 
>   sudo strace -o /root/sudo.trace.out sudo /usr/local/bin/naclient params

Strange enough, with this I get

   sudo: /usr/local/bin/naclient: command not found

Which would be OK with me, since it don't hang endlessly waiting for the
password.

Thanks for the answer, Bob!



More information about the sudo-users mailing list