LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't start vsftpd (https://www.linuxquestions.org/questions/linux-newbie-8/cant-start-vsftpd-698828/)

yzhong 01-21-2009 05:35 AM

Can't start vsftpd
 
Just install vsftpd on Centos 5.2 system
but not able to start it, anyone has some idea?
[root@example lib]# /etc/init.d/vsftpd start
Starting vsftpd for vsftpd: /usr/sbin/vsftpd: error while loading shared libraries: libwrap.so.0: failed to map segment from shared object: Permission denied
[FAILED]

thx in advance

watcher69b 01-21-2009 06:52 AM

can you
" locate libwrap.so* "
or
" find / -name libwrap.so* "

once you find the location of the file what are the file permissions compaired to the other ones in the directory, are they the same owner/group?

DotHQ 01-21-2009 08:23 AM

Not an answer to your question but I'll toss this out there. We had trouble on a CentOS install getting FTP to work, we were under a deadline so we looked into SCP and it worked perfectly. So much so that we never revisited the FTP issue. I had forgotten about it until reading your post. SCP works. WinSCP is a free download client that works on Windows boxes. And no passwords or data is sent in the clear. A big plus from my point of view.
For whats it's worth I thought it worth mentioning here.

bathory 01-21-2009 09:23 AM

It looks like a SeLinux problem. Run
Code:

restorecon -v /usr/lib/libwrap.so.0
to see if it helps.
You can alos configure Selinux for vsftpd or disable it if you don't need it.

Regards

yzhong 01-21-2009 08:48 PM

Already try locate and find that file yesterday,file permissions/group/owner is the same as others.
I also think it might be selinux's problem even no error show on /var/log/messages, will try restorecon tonight.

yzhong 01-23-2009 04:08 AM

solved, use restorecon, thx all


All times are GMT -5. The time now is 11:07 PM.