|
Bugzilla – Full Text Bug Listing |
| Summary: | Not able to set Variable in default Profile for CA | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Robert Fields <fieldsr> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | high | CC: | rajaniyer123 |
| Priority: | normal | ||
| Version: | 1.6.9 | ||
| Hardware: | PC | ||
| OS: | Other | ||
|
Description
Robert Fields
2008-07-10 10:27:20 MDT
In sudo1.6.9p17 we are facing problem while setting variable in default profile. The variable $AGENTWORKS_DIR is required in CA setup.Whenever we execute awservices command, follwing error generates: bash-3.00# awservices status Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Environment is not set properly. AGENTWORKS_DIR undefined Failed to load codeset table from file /services/config/local/cp1252.xlt, error 201 Segmentation Fault (core dumped). $AGENTWORKS_DIR is set in default profile file as follows: if [ "$AGENTWORKS_DIR" = '' ] then AGENTWORKS_DIR=/opt/CA/UnicenterNSM/atech export AGENTWORKS_DIR fi if [ -f "$AGENTWORKS_DIR"/scripts/envset ] then . "$AGENTWORKS_DIR/scripts/envset" fi The same profile settings are present in machines with earlier version of sudo i.e Sudo version 1.6.8p9, but we are not facing any problem on these machine. Kindly inform if it is a version constraint & secondly is it possible to resolve this issue using sudo 1.6.9p17 version Regards Rajan The '>' indicates that the default is applied when running commands as that user. In the example, !set_logname will be applied when running commands as root. Perhaps you have an older version of sudo that doesn't support runas Defaults. With respect to the AGENTWORKS_DIR environment variables, since version 1.6.9 sudo will run commands with a clean environment. If you need to preserve variables you can do so. See the UPGRADE file included with the sudo distribution for more information. |