[sudo-workers] sudo ignores child return code

Radovan Sroka rsroka at redhat.com
Tue Aug 30 08:36:51 MDT 2016


Hi Todd,

I found regression in sudo behavior, It's reproducible on recent sudo-1.8.18b2.

When you have a script which refers to non existing interpreter like:

$ cat test.sh
#/bin/asdsadsa
#useless script

$ chmod u+x test.sh

Sudo executes this command and it should fail.

$ sudo ./test.sh

But Sudo returns 0.

---------------------------------------------------------

Radovan Sroka
Security Technologies | Red hat, Inc.



More information about the sudo-workers mailing list