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

Problem running SSH deamon on HP-UX 11 v1

 
SOLVED
Go to solution
zhassulan
Advisor

Problem running SSH deamon on HP-UX 11 v1

Hi all,

i've got a problem running ssh deamon on hp-ux 11.11

when i try to start ssh using

./sbin/initd/secsh start

it throws an error:

hp3:/sbin/init.d#./secsh start
/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/libkrb5.sl
/usr/lib/dld.sl: Permission denied
./secsh[70]: 9405 Abort(coredump)
EXIT CODE: 134

i've spend two days playing around with it, installed latest bundles of SSH and OpenSSL.

any help appreciated.
thanks in advance.
9 REPLIES
Aneesh Mohan
Honored Contributor
Solution

Re: Problem running SSH deamon on HP-UX 11 v1


Hi,

Please post the below commands o/p.

#what /opt/ssh/sbin/sshd |head -n 5

#kmtune |grep -i "^max*"

#swapinfo -tam

Regards,
Aneesh
Aneesh Mohan
Honored Contributor

Re: Problem running SSH deamon on HP-UX 11 v1

addendum ..

#kmtune -q executable_stack

Regards,
Aneesh
Aneesh Mohan
Honored Contributor

Re: Problem running SSH deamon on HP-UX 11 v1

Hi ,

I have just reproduced the same error by changing the permission of the below lib link file.

# chmod 444 /usr/lib/libkrb5.sl
# /sbin/init.d/secsh start
/usr/lib/dld.sl: Call to mmap() failed - TEXT /usr/lib/libkrb5.sl
/usr/lib/dld.sl: Permission denied
/sbin/init.d/secsh[70]: 4149 Abort(coredump)
EXIT CODE: 134

If this is the problem ,please change the permission as below.

# chmod 755 /usr/lib/libkrb5.sl
# /sbin/init.d/secsh start
HP-UX Secure Shell started
#

Also make sure that the following permission for the below source file.

# ls -lrt /opt/krb5core/lib/libkrb5.1
-rwxr-xr-x 1 bin bin 1110016 Apr 2 2007 /opt/krb5core/lib/libkrb5.1





Regards,
Aneesh
Dennis Handly
Acclaimed Contributor

Re: Problem running SSH deamon on HP-UX 11 v1

>Aneesh: I have just reproduced the same error by changing the permission of the below lib link file.

Exactly, load modules must be executable.

>please change the permission as below.
# chmod 755 /usr/lib/libkrb5.sl

The correct permissions are a=rx, no need for write access.
zhassulan
Advisor

Re: Problem running SSH deamon on HP-UX 11 v1

hey guys, thanks for replies.

i did change the permisions, and i think that was the problem. but now i've got the other one.
when i try

/sbin/init.d/secsh start

it throughs an error:

hp3:/#./sbin/init.d/secsh start
/usr/lib/dld.sl: Can't find path for shared library: libcom_err.sl
/usr/lib/dld.sl: No such file or directory
./sbin/init.d/secsh[70]: 17469 Abort(coredump)
EXIT CODE: 134

i have checked the SHLIB_PATH, and it was pointing to a /sap/...
where should it point to?

i have tryed
SHLIB_PATH=/usr/lib
no success

also, when i tryed to change permisions:

hp3:/usr/lib#chmod 744 libcom_err.sl
chmod: can't access libcom_err.sl

is this a problem with the library or something else?
zhassulan
Advisor

Re: Problem running SSH deamon on HP-UX 11 v1

and this is the output of the commands Aneesh asked to run:

1)
hp3:/#what /opt/ssh/sbin/sshd | head -n 5
/opt/ssh/sbin/sshd:
$Revision: 92453-07 linker linker crt0.o B.11.53 060320 $
$HP-UX Secure Shell: sshd.c,vA.05.20.004 ,TCP Wrappers: v7.6-ipv6.4, Zlib: v1.2.3 2009/04/24 $
$HP-UX Secure Shell: sftp-server.c,vA.05.20.004 ,TCP Wrappers: v7.6-ipv6.4, Zlib: v1.2.3 2009/04/24 $
$OpenSSL A.00.09.08k.001, Zlib: v1.2.3 $

2)
hp3:/#kmtune | grep -i "^max*"
max_async_ports 50 - 50
max_fcp_reqs 512 - 512
max_mem_window 0 - 0
max_thread_proc 4096 - 4096
maxdsiz 4294963200 - 4294963200
maxdsiz_64bit 68719476736 - 68719476736
maxfiles 10240 - 10240
maxfiles_lim 20480 Y 20480
maxqueuetime - - 0
maxssiz 268435456 - 268435456
maxssiz_64bit 1073741824 - 1073741824
maxswapchunks 16384 - 16384
maxtsiz 134217728 Y 134217728
maxtsiz_64bit 34359738368 Y 34359738368
maxuprc 29490 Y ((NPROC*9)/10)
maxusers 4096 - 4096
maxvgs 256 - 256

3)
hp3:/#swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
dev 15008 0 15008 0% 0 - 0 /dev/vg00/swap
dev 11008 0 11008 0% 0 - 2 /dev/vg00/lvol14
reserve - 189 -189
memory 6369 520 5849 8%
total 36481 709 35772 2% - 0 -

4)
hp3:/#kmtune -q executable_stack
Parameter Current Dyn Planned Module Version
===============================================================================
executable_stack 1 - 1


Suraj K Sankari
Honored Contributor

Re: Problem running SSH deamon on HP-UX 11 v1

Hi,
My suggestion is just remove your ssh from server and do a fresh install.
download ssh from this below link.

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-5.2p1/

Suraj
zhassulan
Advisor

Re: Problem running SSH deamon on HP-UX 11 v1

hi all,

thanks for your help,
i finally solved the problem.

first problem was with the permisions
second problem was that the SHLIB_PATH was not set properly
and third something was wrong with the files in /usr/lib (i had to delete some of them, and copy from another hp-ux server, i guess it is not the best way to fix the problem, but it helped)

thanks again
zhassulan
Advisor

Re: Problem running SSH deamon on HP-UX 11 v1

the problem was solved, thanks, to the guys that helped tho solve it.