LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2013, 04:06 AM   #1
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
cant login via ftp(vsftpd) in centos 6.4 and cant start vsftpd


i am running centos 6.4 in the server n now i cant start vsftpd..restarting it works and evn when i chekc its status it says 'vsftps running' but when start it,it fails.

and i cant login via ftp even with the correct username and password,it says 530 login incorrect..and the log says:

"www vsftpd[2551]: warning: can't get client address: Connection reset by peer"


can anyone tell me what could b the problem?

Last edited by SarahGurung; 03-16-2013 at 04:09 AM.
 
Old 03-16-2013, 11:36 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,228

Rep: Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970
Quote:
Originally Posted by SarahGurung View Post
i am running centos 6.4 in the server n now i cant start vsftpd..restarting it works and evn when i chekc its status it says 'vsftps running' but when start it,it fails. and i cant login via ftp even with the correct username and password,it says 530 login incorrect..and the log says:

"www vsftpd[2551]: warning: can't get client address: Connection reset by peer"

can anyone tell me what could b the problem?
Spell out your words. And if you say that vsftpd fails when you try to start it, that would definitely indicate a problem. So how about posting the error(s) that you got? Have you made any changes to vsftpd, or is this a new install? Have you restarted xinetd? Has this EVER worked?? Have you checked your firewall/iptables settings? Google???
https://www.centos.org/modules/newbb...topic_id=30475
 
Old 03-17-2013, 11:15 PM   #3
SarahGurung
Member
 
Registered: Jul 2011
Posts: 322

Original Poster
Rep: Reputation: Disabled
well vsftpd starts but then i cannot login with the username and password:it says 530 incorrect loging even with the correct username and password...and the error log shows nothing other than the :
Code:
www vsftpd[2551]: warning: can't get client address: Connection reset by peer
And i have the followinf iptables rules:
Code:
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 20 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -j ACCEPT -p tcp -m multiport --port
s 62222:63333
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
it's a web server.so ftp in it isn't working.hope it helps u to help me out..
 
Old 03-18-2013, 09:35 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,228

Rep: Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970Reputation: 5970
Quote:
Originally Posted by SarahGurung View Post
well vsftpd starts
In your first thread, you said: "now i cant start vsftpd."
Quote:
but then i cannot login with the username and password:it says 530 incorrect loging even with the correct username and password...and the error log shows nothing other than the :
Code:
www vsftpd[2551]: warning: can't get client address: Connection reset by peer
Ok. You were asked questions in the first reply, which you still haven't answered.
  • Have you made any changes to vsftpd?
  • Is this a new install of VSFTPD?
  • Have you restarted xinetd?
  • Has this EVER worked??
  • Have you checked your firewall/iptables settings?
Have you configured vsftp to allow local users to log in? Are you able to log in AT ALL, even using anonymous? Can you connect/log in from the server itself (i.e. run a terminal session on the FTP server, then "ftp <IP address of the FTP server>"?
Quote:
And i have the followinf iptables rules:
And since you don't say what port your FTP server is running on, there's not much we can tell you. Looking at the ports listed, do you see where your FTP port is allowed through? Are you doing active or passive FTP? Running it on the default ports, or a different port? Typically to allow passive and active FTP, you would:
Code:
# Allow FTP connections @ port 21
<rule> -A INPUT  -p tcp --sport 21 -m state --state ESTABLISHED -j ACCEPT
<rule> -A OUTPUT -p tcp --dport 21 -m state --state NEW,ESTABLISHED -j ACCEPT
# Allow Active FTP Connections
<rule> -A INPUT -p tcp --sport 20 -m state --state ESTABLISHED,RELATED -j ACCEPT
<rule> -A OUTPUT -p tcp --dport 20 -m state --state ESTABLISHED -j ACCEPT
# Allow Passive FTP Connections
<rule> -A INPUT -p tcp --sport 1024: --dport 1024: -m state --state ESTABLISHED,RELATED -j ACCEPT
<rule> -A OUTPUT -p tcp --sport 1024: --dport 1024:  -m state --state ESTABLISHED,RELATED -j ACCEPT
Quote:
it's a web server.so ftp in it isn't working.hope it helps u to help me out..
Again, YOU NEED TO SPELL OUT YOUR WORDS.

And is your server able to resolve hostnames?
 
  


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
vsftpd failed to start CentOS 6 piernut Linux - Server 1 08-31-2012 07:32 AM
CentOS 6.2 and vsftpd issue w/ explicit FTP over TLS Kaiser Soze Linux - Server 1 07-27-2012 01:14 AM
how to create a new user for ftp upload in a web server using vsftpd centos SarahGurung Linux - Newbie 2 06-18-2012 03:39 PM
'553 Could not create file' in vsftpd FTP Server on CentOS 5 Fabian10 Linux - Server 2 11-26-2007 12:13 PM
vsftpd - only one user can login to ftp greengrocer Linux - Newbie 4 12-08-2005 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration