Bug 443 - bootinfo doesn't work with sudo
bootinfo doesn't work with sudo
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.4
IBM AIX
: normal high
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-27 11:55 MDT by mrscsi
Modified: 2010-09-27 14:07 MDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"