When we do sesu to root in Solaris the path/environment variable is not set.

Document ID : KB000020555
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptoms:
When we perform sesu to root in Solaris Operating from any non root user we see that the environment/path variable for the root user is not set.

Sample error message:

bash-2.05$ sesu -
 Sun Microsystems Inc. SunOS 5.9 Generic May 2002
 You have new mail.
 /etc/profile[121]: grep: not found
 /etc/profile[121]: uname: not found
 /etc/profile[121]: test: argument expected
 /etc/profile[121]: uname: not found
 /etc/profile[121]: uname: not found
 /etc/profile[121]: test: argument expected
 .profile[5]: grep: not found
 .profile[5]: uname: not found
 .profile[5]: test: argument expected
 .profile[5]: uname: not found
 .profile[5]: grep: not found
 .profile[5]: uname: not found
 .profile[5]: test: argument expected 

Environment
PIM Endpoint
Solaris Operating System

Resolution:
1.Stop ControlMinder services

 #/opt/CA/AccessControl/bin/secons -s


2.update the seos.ini as follows

 Path for seos.ini
 /opt/CA/AccessControl/
 Modify the following lines in seos.ini as follows and save the changes
 old_sesu = no
 request_target_password = no
 UseInvokerPassword = no


3.Start ControlMinder services

 #/opt/CA/AccessControl/bin/seload