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 06-20-2013, 02:14 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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, 02: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, 02:34 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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, 02: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, 02:43 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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-23-2013, 11:13 PM   #6
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
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, 08:31 AM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
thanks
 
Old 06-25-2013, 12:56 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,349

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
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, 09:07 AM   #9
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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 anon091 Linux - Newbie 10 01-18-2010 07:41 PM
log vsftp activeq Linux - Software 1 01-26-2007 06:52 AM
VSFTP Log vswr31 Linux - Software 1 03-30-2006 08:16 AM
strange vsftp.log dominant Linux - Security 6 05-08-2004 05:24 AM
Vsftp log analizer karenmkoyan Linux - Software 0 03-02-2004 06:41 AM

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

All times are GMT -5. The time now is 03:00 PM.

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