Ftp – vsftpd – libz.so.1: failed to map segment from shared object: Permission denied

ftppermissions

/etc/init.d/vsftpd start Starting vsftpd for vsftpd: /usr/sbin/vsftpd: error while loading shared libraries: libz.so.1:

failed to map segment from shared object: Permission denied
[FAILED]

I am afraid that this has something to do with a previous disaster happened. I accidentally changed most of the files permission in this CentOS box to 777.

So I have located this libz.so.1 file which is a link to libz.so.1.2.3 and they are all 777 now.

I don't know what to do with them. Help please?

[root@deadwood repo01]# ls --lcontext /lib64/libz.so.1 
lrwxrwxrwx 1 system_u:object_r:lib_t          root root 13 Aug  9 07:55 /lib64/libz.so.1 -> libz.so.1.2.3 
[root@deadwood repo01]# ls --lcontext /lib64/libz.so.1.2.3
-rwxrwxrwx 1 system_u:object_r:lib_t          root root 85544 Jul 17  2012 /lib64/libz.so.1.2.3 
[root@deadwood repo01]# ls --lcontext /lib/libz.so.1 
lrwxrwxrwx 1 system_u:object_r:lib_t          root root 13 Aug  9 07:55 /lib/libz.so.1 -> libz.so.1.2.3 
[root@deadwood repo01]# ls --lcontext /lib/libz.so.1.2.3
-rwxr-xr-x 1 system_u:object_r:lib_t          root root 75088 Jul 17  2012 /lib/libz.so.1.2.3

Best Answer

You should try to disable SELinux, or change it from enforcing to permissive.