[sudo-users] Cannot run binaries while using -i
Josh Jackson
pturing at firehead.org
Sat Oct 13 11:40:26 EDT 2007
I have noticed that on my system running sudo 1.6.8 I cannot run binary
executables in combination with the -i option.
host ~ # sudo -i ls /
/usr/bin/ls: /usr/bin/ls: cannot execute binary file
The same thing works if I drop the -i or call a wrapper script, such as:
#!/bin/bash
ls "$@"
But that is of course less than ideal. So, is this a bug, or is this the
designed behavior for some reason I do not yet appreciate?
Best Regards,
Josh Jackson
More information about the sudo-users
mailing list