I've tried to capture your scenario in a script; I'm getting a permission denied error. This script was run in the context of a freshly setup user; the only thing I did was add the EXCHANGE variables to its .bashrc