I would like to mount a trucrypt volume using PHP, but I'm getting the following return value from the exec command: Enter keyfile [none]:
This is how i tried: First try:
truecrypt -p password --fs-options=users,uid=$(id -u mysql),gid=$(id -g mysql),fmask=0113,dmask=0002 --mount /media/vulturus_data/test2 /media/true/
Second try:
truecrypt --fs-options=users,uid=$(id -u mysql),gid=$(id -g mysql),fmask=0113,dmask=0002 --mount /media/vulturus_data/test2 /media/true/ << EOF password EOF
If I'm executing in command line this command, then it is working without any problem.
I also included the following line %www-data ALL=(root) NOPASSWD:/usr/bin/truecrypt
in to /etc/sudoers