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