본문 바로가기

개발 노트/Linux

[Linux] error while loading shared libraries: libcrypto.so.1.0.0

반응형

증상 : sshd 서비스 시작 시 아래와 같은 에러 문구 뜨는 경우

/usr/sbin/sshd: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Permission denied

원인 : selinux 가 동작 중인 경우 해당 오류 발생할 수 있음 (check selinux status)

]# getenforce
Enforcing

OR

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted

조치 : slinux 기능 Off 후 sshd 시작 (turn selinux off temporary)

]# setenforce 0
Permissive

추가정보 : selinux 영구 off 방법 (turn selinux off permanently (Cent OS 6))

]# sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/sysconfig/selinux
]# sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config
]# reboot
반응형