Root user cannot log into SMH

From jasonhoss.com
Jump to: navigation, search

It seems that some files that should belong to the hpsmh user or group are actually belonging to user or group bin. This includes the commands used during the SMH authentication, which is preventing their execution by the main SMH process, which runs with the privileges of the hpsmh user.

After verifying the following files were set correctly, the user was able to login.

chown root:hpsmh   /opt/hpsmh/lbin/catalina.sh
chown root:hpsmh   /opt/hpsmh/lbin/start_tomcat
chown root:hpsmh   /opt/hpsmh/lbin/status_tomcat
chown root:hpsmh   /opt/hpsmh/lbin/stop_tomcat
chown root:hpsmh   /opt/hpsmh/lbin/time_out
chown root:hpsmh   /opt/hpsmh/lbin/timeoutmonitor
chown hpsmh:hpsmh  /opt/hpsmh/tomcat/conf
chown root:hpsmh   /opt/hpsmh/lbin/smhauth
chown root:hpsmh   /opt/hpsmh/lbin/smhrun
chown root:hpsmh   /opt/hpsmh/lbin/smhstart
chown hpsmh:hpsmh  /opt/hpsmh/tomcat/work
chown hpsmh:hpsmh  /var/opt/hpsmh/logs
chown hpsmh:hpsmh  /var/opt/hpsmh/session
chown root:hpsmh   /var/opt/hpsmh/sslshare
chown hpsmh:hpsmh  /var/opt/hpsmh/tmp
chown hpsmh:hpsmh  /var/opt/hpsmh/tomcat/logs
chmod  550  /opt/hpsmh/lbin/catalina.sh
chmod  550  /opt/hpsmh/lbin/start_tomcat
chmod  550  /opt/hpsmh/lbin/status_tomcat
chmod  550  /opt/hpsmh/lbin/stop_tomcat
chmod  550  /opt/hpsmh/lbin/time_out
chmod  550  /opt/hpsmh/lbin/timeoutmonitor
chmod  750  /opt/hpsmh/tomcat/conf
chmod 4550  /opt/hpsmh/lbin/smhauth
chmod 4550  /opt/hpsmh/lbin/smhrun
chmod 4550  /opt/hpsmh/lbin/smhstart
chmod  750  /opt/hpsmh/tomcat/work
chmod  750  /var/opt/hpsmh/logs
chmod  755  /var/opt/hpsmh/session
chmod  550  /var/opt/hpsmh/sslshare
chmod  750  /var/opt/hpsmh/tmp
chmod  750  /var/opt/hpsmh/tomcat/