System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX telnet & SSH access denied

 
SOLVED
Go to solution
TalH
Advisor

HP-UX telnet & SSH access denied

After restarting the server (HP-UX 11.31 PA RISC) yesterday, NIS users can't telnet / SSH I get: access denied

I have no problem telnet / SSH as root and then su - to NIS user.

Any idea?
11 REPLIES
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: HP-UX telnet & SSH access denied

hi,

did you made some change before you restarted the system ??

mikap
TalH
Advisor

Re: HP-UX telnet & SSH access denied

I restarted the system after installation of Secure Resource Partitions (SRP
Steven E. Protter
Exalted Contributor

Re: HP-UX telnet & SSH access denied

Shalom,

Log on as root from the console.

ps -ef | grep sshd

Report results back here.

if you don't find anything,try /sbin/init.d/sedcsh start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
TalH
Advisor

Re: HP-UX telnet & SSH access denied

# ps -ef |grep sshd
root 2169 1 0 12:14:54 ? 0:10 sshd: root@pts/0
root 8699 1 0 14:58:21 ? 0:02 sshd: root@pts/1
root 11178 1 0 16:00:35 ? 0:00 /opt/ssh/sbin/sshd


# /sbin/init.d/sedcsh start
/sbin/init.d/sedcsh: Command not found.

when i logged in as root and telnet / ssh nis user@localhos i got:
Compartment access check failed: User is not authorized to login to the compartment associated with this network service.

so it's the SRP effected the system...
merieux
Frequent Advisor

Re: HP-UX telnet & SSH access denied

Hi ,

sometimes sshd service is launched by sshd instead secssh . ls /sbin/init.d/*ssh* can help you . Try to restart sshd daemon

is ypbind et ypserv running ? if not restart the concerned service . ( i have no more hp-ux server whith nis installed ) . Post ls /sbin/init.d/*yp* ? if you don't find .

Who is the nis server , the server taht yoyu have restarted ?
Earl_Crowder
Trusted Contributor

Re: HP-UX telnet & SSH access denied

Secure Resource Partitions is a complex product...have you read the documentation at http://www.hp.com/go/hpux-srp-docs ? After the initial installation of SRP, only root is allowed to login to the INIT compartment.

What steps have you performed after installing SRP?
wentao.liuhp.com
Occasional Visitor

Re: HP-UX telnet & SSH access denied

Hi TalH:

You have to use roleadm assign user SRPLogin-init to allow NIS users access your system.
TalH
Advisor

Re: HP-UX telnet & SSH access denied

How do I do it exactly?

Thanks!
vishnu.khandare
Respected Contributor

Re: HP-UX telnet & SSH access denied

Hi TalH,

Please refer below link, will solve ur query.

http://www.nmrc.org/pub/faq/hackfaq/hackfaq-28.html


Regards
Vishnu Khandare
You should deserve before U desire!!!!
TalH
Advisor

Re: HP-UX telnet & SSH access denied

SRP - "Secure Resource Partitions" not Secure Remote Password
TalH
Advisor

Re: HP-UX telnet & SSH access denied

Done it with the RBAC rules.
Thanks everyone!