Bugzilla – Bug 443
bootinfo doesn't work with sudo
Last modified: 2010-09-27 14:07:40 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.
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"