Bugzilla – Bug 5413
Per user MAD configuration is not loaded
Last modified: 2007-10-10 03:41:49
You need to log in before you can comment on or make changes to this bug.
When using sudo without -H parameter does not set $HOME to the home directory of the user you become. This can be solver using ~ instead of $HOME in gw_mad_common.sh. There are also reports of egrep not matching underscore characters. This is solved escaping underscore in regular expressions.
Modify as described (~ and grep), changes comitted to
It turned out that ~ solution is not feasible, so we either add -H to sudo or always_set_home in sudoers.
There are two other ways of fixing this, one is to use ~$USER or to set HOME in $GW_LOCATION/etc/gwrc to /home/$USER or ~$USER.
i have added -H option to sudo. In this way we can be safe when a sudo installation does not set $USER. Changes are in gw_5_2_branch