Bug 443

Summary: bootinfo doesn't work with sudo
Product: Sudo Reporter: mrscsi
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED INVALID    
Severity: high CC: mrscsi
Priority: normal    
Version: 1.7.4   
Hardware: IBM   
OS: AIX   

Description mrscsi 2010-09-27 11:55:53 MDT
When using sudo 1.6.6 with the bootinfo -b command normal output is returned:

$ /usr/local/bin/sudo bootinfo -b
$ hdisk6

When using sudo 1.6.9 thru 1.7.4p5 bootinfo -b command returns nothing.
Comment 1 Todd C. Miller 2010-09-27 14:07:40 MDT
The bootinfo command relies on the ODMDIR environment variable being set to function.  Later versions of sudo reset the environment when running commands.

You can cause ODMDIR to be preserved with a line like the following in /etc/sudoers.

Defaults env_keep += "ODMDIR"