LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2011, 04:36 AM   #1
efilnei
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Rep: Reputation: 0
Problem trying to set up vsftpd in Centos 5.6


Hi,

im trying to set up a ftp server. The steps that i had follow are these:

1- Install vsftpd
2- Configure /etc/vsftpd/vsftpd.conf (this is the contain of the file):
PHP Code:
chown_uploads=NO
xferlog_enable
=YES
idle_session_timeout
=600
data_connection_timeout
=120
ascii_upload_enable
=NO
ascii_download_enable
=NO
background
=YES
listen
=YES
ls_recurse_enable
=NO
chroot_local_user
=YES
write_enable
=YES
anonymous_enable
=NO
anon_upload_enable
=NO
anon_mkdir_write_enable
=NO
userlist_enable
=YES
userlist_deny
=YES
local_enable
=YES
pam_service_name
=vsftpd 
3- Add users and passwords (with useradd)
4- service vsftpd restart

And when i try to restart the service, it gives "FAILED" and i dont know why.

- Port 21 is open
- SELINUX is disabled
- i have tried to stop iptables and start vsftpd but without success

And the server is just installed, i have not installed anything else.

Some help? Thank u all!
 
Old 04-18-2011, 05:08 AM   #2
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
Check in the logs to get an indication on why it failed to start
 
Old 04-18-2011, 06:26 AM   #3
efilnei
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Hi, thanks for reply.

I think that i solve one problem. Few minutes ago, when i ran 'netstat -plnt' there was a line like this:

Quote:
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 19322/xinetd
So that's one problem: xinetd is listening in my port 21. I disabled the ftp in xinetd and now i reinstall vsftpd. All ok

When i run 'service vsftpd start' the daemon starts succesfully.

And now, when i run 'netstat -plnt' there are a line like this:

Quote:
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 19652/vsftpd
So is a good signal, vsftpd is running in my port 21

But now, the problem is, when im trying to connect ftp using filezilla, i cant connect it, i get these errors:
Error: Connection timed-out
Error: Could not connect to server

And i dont found nothing in the /var/log/messages related to ftp

Thanks again
 
Old 04-18-2011, 10:04 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,426

Rep: Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786Reputation: 2786
iirc, it will log to /var/log/xferlog by default, but it's configurable.
http://vsftpd.beasts.org/
 
Old 04-19-2011, 04:54 AM   #5
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
Timeout means iptables is running, try to stop it to test and then add the rule to allow it. by default CentOS only allows 22/tcp incoming for SSH.
 
  


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
[SOLVED] vsftpd on CentOS 5.5 jonaskellens Linux - Newbie 2 09-16-2010 04:23 AM
CentOS in one VirtualBox, Windows in another - can I set up Samba in the CentOS VB? ismism Linux - Newbie 10 08-08-2010 04:34 PM
vsftpd in CentOS RedLay Linux - Server 2 03-18-2010 09:01 AM
CentOS 4 - Setting users for vsftpd vikram8jp Linux - Newbie 2 10-16-2008 03:15 AM
CentOS 5 + vsftpd + upload = error diezzler Linux - Networking 3 01-18-2008 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:08 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