Bug 5413 - Per user MAD configuration is not loaded
: Per user MAD configuration is not loaded
Status: CLOSED FIXED
: Gridway
Middleware Access Drivers
: 5.2.1 - GT 4.0.5
: All All
: P3 normal
: 5.2.3
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-06-26 12:47 by
Modified: 2007-10-10 03:41 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-06-26 12:47:34
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.
------- Comment #1 From 2007-06-28 10:58:04 -------
Modify as described (~ and grep), changes comitted to 
------- Comment #2 From 2007-06-29 12:33:15 -------
It turned out that ~ solution is not feasible, so we either add -H to sudo or
always_set_home in sudoers.
------- Comment #3 From 2007-07-01 05:34:04 -------
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.
------- Comment #4 From 2007-07-02 05:42:00 -------
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