[sudo-users] Cannot run binaries while using -i

Todd C. Miller Todd.Miller at courtesan.com
Sat Oct 13 13:57:24 EDT 2007

The -i flag is for starting an interactive shell, not for
running a command.  You may be able to do what you want by
passing your shell the -c flag.  E.g.

    sudo -i -- -c ls /

Though this will probably only work in sudo 1.6.9 and higher.

 - todd

More information about the sudo-users mailing list