Using Ubuntu 14.04 LTS, I'm having a problem trying to read environment variables from
/etc/environment when using
sudo env. Basically, they are not being displayed. When I do just
env, these variables appear like it should.
In my other server, which is running Ubuntu 13.04, both
sudo env and
env display variables from
How do I get
sudo env to read the environment variables set in
/etc/environment in Ubuntu 14.04 LTS?
UPDATE - 2014-07-14
/etc/pam.d/sudo, and they are exactly the same:-
#%PAM-1.0 auth required pam_env.so readenv=1 user_readenv=0 auth required pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0 @include common-auth @include common-account @include common-session-noninteractive