LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-20-2013, 03:14 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Rep: Reputation: 37
vsftp users can log in, but then can't ls or anything!


I have an FTP server, where the users are able to log in, but then when they do a ls, they get a 425 Failed to establish connection after a short pause. Any ideas?
 
Old 06-20-2013, 03:27 PM   #2
Dennis3
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Rep: Reputation: Disabled
FTP uses two ports:
1. 21
2. 20

Port 20 is used for DATA transfer. Please check that your firewall if any doesn't block it, furthermore, check that chroot_local_user markes as YES in /etc/vsftpd/vsftpd.conf

Let me know if it helped

Dennis.
 
Old 06-20-2013, 03:34 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
Actually, its weird, if I try to ftp from a command prompt, i get a "200 PORT command successful. Consider using PASV" then the 425. but if i connect with Filezilla, everything works.

I tried turning off iptables and still a no go. so it must be client related, although they've been using the same client all along, i wonder what changed
 
Old 06-20-2013, 03:41 PM   #4
Dennis3
LQ Newbie
 
Registered: Jun 2013
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by rjo98 View Post
Actually, its weird, if I try to ftp from a command prompt, i get a "200 PORT command successful. Consider using PASV" then the 425. but if i connect with Filezilla, everything works.

I tried turning off iptables and still a no go. so it must be client related, although they've been using the same client all along, i wonder what changed
Not a while ago I had to set FileZilla server on one of the Windows Server 2012 machine and I had to change the Data transfer port to 20 instead of the random ports they supplied ( in the configuration ).

Dennis.
 
Old 06-20-2013, 03:43 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
I'm talking about the client though will connect to my vsftp server, but the windows command prompt ftp client is having the issue.
 
Old 06-24-2013, 12:13 AM   #6
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 805

Rep: Reputation: 158Reputation: 158
Try passive mode, if the client supports it. In your vsftp, specify pasv_enable=yes, and a min and max port range. For example:

Code:
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=30099
Then open up the pasv port range on your firewall.
 
Old 06-24-2013, 09:31 AM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
thanks
 
Old 06-25-2013, 01:56 AM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
This is a good link about active vs passive; maybe a good background read http://slacksite.com/other/ftp.html
 
1 members found this post helpful.
Old 06-25-2013, 10:07 AM   #9
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,562

Original Poster
Rep: Reputation: 37
Thanks everyone, I think I'm good for now on this, closing the thread.
 
  


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
vsftp - some users see files, some don't, but all users are in same group rjo98 Linux - Newbie 10 01-18-2010 08:41 PM
log vsftp activeq Linux - Software 1 01-26-2007 07:52 AM
VSFTP Log vswr31 Linux - Software 1 03-30-2006 09:16 AM
strange vsftp.log dominant Linux - Security 6 05-08-2004 06:24 AM
Vsftp log analizer karenmkoyan Linux - Software 0 03-02-2004 07:41 AM


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