Bug 174

Summary: /etc/environment not being sourced by sudo
Product: Sudo Reporter: Robin Venables <robin.venables>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: IBM   
OS: AIX   

Description Robin Venables 2005-03-30 07:21:16 MST
Environmental variable TZ is set in /etc/environment to GMT0BST,M3.5.0,M10.5.0
From my user ID, this is set, but not if I sudo to another user:

$ echo $TZ
GMT0BST,M3.5.0,M10.5.0
$ date
Wed Mar 30 15:15:42 BST 2005
$ sudo -s
$ date
Wed Mar 30 15:15:50 BST 2005
$ su - oracle
$ date
Wed 30 Mar 15:15:57 2005
$ exit
$ exit
$ sudo -u oracle -i
$ date
Wed Mar 30 14:16:13 UTC 2005
$ 

Can we get sudo to source /etc/environment on AIX?
Comment 1 Todd C. Miller 2005-03-30 08:10:18 MST
Dupe of bug #83; not fixable until someone gives me access to an AIX 5 machine.

*** This bug has been marked as a duplicate of 83 ***