On May 21, 2009, at 2:58 AM, Kenneth Gonsalves wrote:

greenchilly:/home/lawgon# su vmail -c "echo OK"
OK
greenchilly:/home/lawgon# su vmail -c 'cd /home/vmail/example.com/ john &&
echo Dir:$(pwd)'
Dir:/home/vmail/example.com/john

I also did a chmod o+r on /home, /home/vmail, /home/vmail/ example.com and
/home/vmail/example.com/john

chdir() wants +x, not +r.

Reply via email to