Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP problems (Linux)

Status
Not open for further replies.

carloswill

Technical User
Jul 26, 2005
13
US
Ok, I just set up Fedora 4 which comes with vsFTPd 2.0.3 installed and everything I thought was working fine, but it's not.

My ftp servers address is carlwill.dyndns.org.

The problem is that I am able to see / connect to my FTP server but am unable to access any files / directories from the server.

I created a user for testing:

Username = linuxusr
Password = ftptest


I have a file called linux.gif in /home/linuxusr but when I connect to the ftp server I get this error:
 
Something might be wrong with the FTP configuration. If you log in using a specific username, you should be in that user's home directory, you should not have to CD to it.

Try a pwd and a ls -la when you log in to see where you are and what you can see, then again after the cd if it is needed.



JuJutsu - Jeff S.
Support Analyst
 
When I login as that user I am in the /home/user_name directory and I am able to "pwd" but when I try and do "ls -a" command _ get the same error as in the image.

It says:

200 Port command successful. Consider using PASV.
425 Failed to establish connection.

I am so confused.
 
This is an FTP configuration issue. Check the docs for the FTP server you are using. PASV is used for compatability with older systems


JuJutsu - Jeff S.
Support Analyst
 
I always read the documentations for apps and I checked the vsftpd manual and found nothing of use - that is why I asked here.
 
I can connect using my handy dandy Ipswitch WS_FTP Proffessional ftp client ;-) and it takes me to /home/linuxusr as you said but I don't see anything in there. I also don't get an error. What are the permissions on just that file? Who owns it?



 
There is one file in that Linuxusr home dir. called "linux.gif" so the file path would be /home/linuxusr/linux.gif.

Here are the permissions...

Code:
[linuxusr@carlwill ~]$ ls -l
total 24
-rw-r--r--  1 root root 20569 Jul 26 09:17 linux.gif
 
This sounds like a firewall issue to me.
I seem to remember that when the server runs in default config, the initial connection is not the only one used.
I suggest you google around a little for the answer to this and I'm sure you'll find that your firewall is blocking a port that you need open to solve the problem.


Trojan.
 
Be sure that your firewall allows port 20 as well as port 21. Port 20 is used for FTP-DATA. I've run into that before.

Mark
 
From what I can gather the file should be owned by user:group ftp. Depending on the FTP client in use you have the correct pemissions for a real FTP client. If you're using IE or the MS FTP client you should also have the execute bit set.

The IE browser will use PASV unless you disabled it.

I hope this helps.



## Just because you can do something doesn't mean you should.

Lorenzo Wacondo (System Administrator)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top