[sudo-users] sudo -i: "cannot execute binary file" or password prompt

Todd C. Miller Todd.Miller at courtesan.com
Tue Apr 21 16:48:31 EDT 2009


In sudo 1.7.0 and higher you would do it like this:

foo ALL=(ALL) NOPASSWD: /usr/local/bin/bash -c /usr/local/bin/bar

and sudo will notice that you passed an argument to the -i
flag and add the -c itself.

There's no good way to do this for versions prior to 1.7.0.

 - todd



More information about the sudo-users mailing list