Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

On a server I haven't installed, ntpd is broken:

# /etc/init.d/ntpd start
ntpd: error while loading shared libraries:
  libz.so.1: cannot open shared object file: Permission denied

but permissions look right:

# ldd /usr/sbin/ntpd
libz.so.1 => /usr/lib64/libz.so.1

# ls -l /usr/lib64/libz.so.1
lrwxrwxrwx root root /usr/lib64/libz.so.1 -> libz.so.1.2.3

# ls -l /usr/lib64/libz.so.1.2.3
-rwxr-xr-x root root /usr/lib64/libz.so.1.2.3

LD_LIBRARY_PATH is empty and the server is 64 bit:

# uname -a
Linux my.server 2.6.18-128.el5 #1 SMP [...] x86_64 x86_64 x86_64 GNU/Linux

How do I find out which library hasn't enough permissions?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

If you are using SELinux, then you might have a wrong label on /usr/lib64/libz.so.1.2.3 file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.