|
Bugzilla – Full Text Bug Listing |
| Summary: | THE AIX command odmget fails with sudo 169 and higher. | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | aedeson |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | maniac-sudo |
| Priority: | normal | ||
| Version: | 1.7.1 | ||
| Hardware: | IBM | ||
| OS: | AIX | ||
This is almost certainly due to odmget needing an environment variable set. Starting with sudo 1.6.9, commands are run with a fresh copy of environment. In 1.6.8 and below the command inherited the user's environment. If you find the variable that needs to be set you can add it to the list of things to preserve with a line like: Defaults env_keep += "VARIABLENAME" If you need to preserve multiple variables you can list them together, separated by a space inside the double quotes, or just use multiple Defaults lines. Alternately, you can restore the old environment behavior by using a line like: Defaults !env_reset (In reply to comment #0) The AIX ODM tools need the 'ODMDIR' variable to be set. Put the following in your sudoers file/defaults entry: env_keep+=ODMDIR The AIX ODM tools need the 'ODMDIR' variable to be set. |
$ sudo -V Sudo version 1.6.9p15 $ sudo odmget errnotify 0518-506 odmget: Cannot open object class errnotify Check path name and permissions. ***************************************************** This problem does not exist in sudo version 1.6.6 jd1su012:/home/m535aae:sudo -V Sudo version 1.6.6 jd1su012:/home/m535aae:sudo odmget errnotify |head errnotify: en_pid = 0 en_name = "" en_persistenceflg = 1 en_label = "SCANOUT" en_crcid = 0 en_class = "" en_type = "" en_alertflg = "" *****************************************************