I need to unit test some bash scripts, I have setup a debian squeeze in a chroot. From command line I can use chroot /directory my-command, ou schroot -d / -u root my-command, but I need to run theses commands from a PHPUnit test, runned by Apache (user www-data). With schroot I have this error
E: No controlling terminal E: Authentication failed: Authentication failure
with sudo chroot I have
sudo: no tty present and no askpass program specified
Better idea than me?
www-data ALL=(ALL) NOPASSWD: /path/to/your/PHPUnit-script.sh– Mircea Vutcovici Dec 7 '11 at 14:40