I would prefer to see two environment variables, which would expose information
similar to what a login shell exposes. The USER variable would contain the name
of the effective user id, and HOME would have the home directory of that user.
I use hudson to automate deployments of ruby applications that use Capistrano.
Some of these other command line tools look in $HOME for certain files. Because
$HOME is not set, I have to set it manually in the hudson with something like:
HOME=/usr/share/tomcat6 cap -v -v deploy
This workaround is functional, but if the container is ever run as a different
user id, it would break.