Solved

ls in ftp

Posted on 2000-05-09
12
530 Views
Last Modified: 2010-04-21
(Solaris2.7)
When I ftp my server it lets me get in but when I try to put or get files it doesn't do it and I think the problem is that ls doesn't work.
It says 200 PORT command successful but then it gets stuck, and doesn't continue.
Any ideas?
0
Comment
Question by:mandybird44
  • 3
  • 3
  • 2
  • +4
12 Comments
 

Expert Comment

by:CASIOFL
Comment Utility
Have you checked that the ftp login has valid permissions to the directory or folder where you are attempting to put or get files.
0
 

Author Comment

by:mandybird44
Comment Utility
yes. I believe that what causes the problem has something to do with ls.
0
 

Expert Comment

by:CASIOFL
Comment Utility
Are you running any type of firewall between your client station and the server. I ask this, because I have seen some Sun bug reports, about ls causing a 200 port successful message in ftp sessions with systems running through Checkpoint firewall-1, and other Sun network security tools.  Unfortunately, if this is the case, I do not have an answer for you, since I do not run any firewall tools, in my intra-network.
0
 

Author Comment

by:mandybird44
Comment Utility
Can you tell me where exactly you saw that? (I am using FW)
0
 

Expert Comment

by:CASIOFL
Comment Utility
My customer maintains a software support contract with Sun. Sun provides us with quaterly CDs that contain all bugs, white papers, info docs, patches, fixes, etc...
We load these CDs and can perform text searches. I searched on your error and I found several bugs describing the same problems as you, and they were all pointing to some sort of conflict with having firewall-1 turned on vs off. unfortunately, Sun did not report a fix on any of these bugs.
0
 
LVL 1

Expert Comment

by:tvanlint
Comment Utility
if you go through a firewall to get that, you might need to use a passive transfer mode.  Depending on your install, you might find another ftp in /usr/local/bin/ that uses passive transfers by default.  Or most windows GUI clients (Laplink ftp is one I use and is free) have an option in one of their advanced menus to tell it to use passive transfers.  This might help you...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Expert Comment

by:troyrock
Comment Utility
The trouble is that ftp uses two ports for the transfer of information: 21 for control traffic (the request you type for instance - get filename.ext) and 22 or data.  Likely port 22 is blocked.  Some firewalls are stateful in that they allow the replies to outgoing traffic (your request) to come back but they don't allow new traffic to originate from the outside (the port 22 data originating from your server to your desktop)  You would have to be ftp'ing to a server outside the firewall from the inside for this to be the problem.  Some firewalls are clever enough to allow the data information in but others need to be told explicitly to allow this type of data.
0
 

Author Comment

by:mandybird44
Comment Utility
10x for your answer troyrock, but it didn't help.
0
 
LVL 15

Expert Comment

by:samri
Comment Utility
mandybird44,

I'm surprised that troywork suggestion doesn't work.  Have you tried to allow port 21 and 22 TCP, incoming and outgoing to go thru.

Or you could try passive transfer mode.  I think that it is PASV or PASSIVE  -- just check the HELP.

good luck
0
 

Expert Comment

by:troyrock
Comment Utility
Do you have a sniffer or a tcpdump trace that you could share with us?
0
 

Expert Comment

by:himansusb
Comment Utility
Did you check up your ~/.netrc file ?

Himansu
0
 
LVL 2

Accepted Solution

by:
ish earned 50 total points
Comment Utility
I have a FW, with an anon FTP server outside, that I regularly FTP in and out of.  We don't allow too much BACK in, but allow almost full out to.

The problem you describe, is one that I've had similar problems to, the fix for us was part of hte FTP server's config.

#1: had to have an LS available for the incoming accounts.  Our FTP service has a root directory, that contains it's own ls and other such neccissary bin files.

#2: user's coming in had to be capable and have permission to execute said bin files.

The #1 caused problem similar to yours, and the #2 surfaced as a "Permission denied" error after #1 was fixed.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now