LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2009, 05:35 AM   #1
yzhong
Member
 
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Rep: Reputation: 16
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

Last edited by yzhong; 01-21-2009 at 05:42 AM.
 
Old 01-21-2009, 06:52 AM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
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?
 
Old 01-21-2009, 08:23 AM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 548

Rep: Reputation: 33
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.
 
Old 01-21-2009, 09:23 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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
 
Old 01-21-2009, 08:48 PM   #5
yzhong
Member
 
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Original Poster
Rep: Reputation: 16
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.
 
Old 01-23-2009, 04:08 AM   #6
yzhong
Member
 
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Original Poster
Rep: Reputation: 16
solved, use restorecon, thx all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
start httpd en vsftpd at start zerocool22 Linux - Server 11 04-25-2008 07:50 AM
How to start vsftpd automatically? kornerr Linux - General 2 04-24-2006 01:40 AM
vsftpd won't start nrodolfich Linux - Networking 3 02-24-2006 06:29 PM
how to start and configure VSFTPD QiEr Linux - Newbie 2 02-02-2005 09:10 PM
vsftpd - Why is it trying to start at boot? SForsgren Linux - General 2 04-28-2003 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration