1825049 Members
3146 Online
109678 Solutions
New Discussion юеВ

Unable to login to smh ?

 
SOLVED
Go to solution
Jerry_109
Super Advisor

Unable to login to smh ?

HP-UX B.11.31 U
ia64 hp server Integrity Virtual Machine
#############################
Hello All,

I having problem logging into my "System Management Homepage" via :
/usr/sbin/smh &

The gui starts up via Mozilla Firfox, but when I login as root my access is denied (sign-in failure). I have the correct root passowrd. Don't know what's wrong?

#########################################
netstat before I start smh:
root@[/opt/hpsmh/logs]
# netstat -a | egrep -i "2301|2381"
tcp 0 0 localhost.2381 *.* LISTEN
tcp 0 0 *.2301 *.* LISTEN
tcp 0 0 *.2381 *.* LISTEN
root@[/opt/hpsmh/logs]
##################################

netstat after I start smh:
# netstat -a | egrep -i "2301|2381"
tcp 0 0 hovm230.2381 hovm230.49593 ESTABLISHED
tcp 0 0 localhost.2381 *.* LISTEN
tcp 0 0 *.2301 *.* LISTEN
tcp 0 0 hovm230.49593 hovm230.2381 ESTABLISHED
tcp 0 0 hovm230.2301 hovm230.49592 TIME_WAIT
tcp 0 0 *.2381 *.* LISTEN

###############################
root@[/opt/hpsmh/logs]
# ps -aef | grep -i smh
root 29585 29583 0 11:57:03 pts/1 0:00 /opt/hpsmh/lbin/time_out /opt/hpsmh/logs/smh.timestamp 30
root 1406 1149 0 12:27:04 pts/2 0:00 smh -r
root 2673 1 0 12:52:02 pts/1 0:00 /bin/sh /opt/hpsmh/lbin/samweb ?chppath=Tools -F -b
root 29583 1 0 11:57:03 pts/1 0:00 /usr/bin/sh /opt/hpsmh/lbin/timeoutmonitor 30
root 1746 1 0 Jun 18 ? 0:00 /opt/hpsmh/lbin/smhstartd
hpsmh 29619 29582 0 11:57:04 ? 0:01 /opt/hpws/apache/bin/httpd -k start -DSSL -f /opt/hpsmh/conf/smhpd.conf
root 29582 1 4 11:57:03 ? 0:00 /opt/hpws/apache/bin/httpd -k start -DSSL -f /opt/hpsmh/conf/smhpd.conf
root 2713 1149 0 12:52:51 pts/2 0:00 grep -i smh
###############################


3 REPLIES 3
Jeeshan
Honored Contributor
Solution

Re: Unable to login to smh ?

1) Started by looking at the smh.log file located in /var/opt/hpsmh/logs. exactly what it said.

2) Also looked in the access_log and error_log but neither one had helpful information.

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/
a warrior never quits
Jerry_109
Super Advisor

Re: Unable to login to smh ?

Excellent, it works now.
Jeeshan
Honored Contributor

Re: Unable to login to smh ?

good to hear!!!
then close this thread.
a warrior never quits