FTP error


 
Thread Tools Search this Thread
Special Forums IP Networking FTP error
# 1  
Old 05-18-2011
FTP error

Hi,

While doing FTP am getting an error like
Code:
Connected to xxxx (xxxx).
220 (vsFTPd 2.0.5)
Name (xxxx:nn): yy
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir */*/*/*.zip
227 Entering Passive Mode (10,58,132,123,204,83)
150 Here comes the directory listing.

Am not sure why this error is popping up.

Please let me know what needs to be done to resolve this issue.

I also checked the directories permissions of FTP machine and its having the full permission.

Thanks in advance.

Moderator's Comments:
Mod Comment Please use [code] and [/code] tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks. Also please refrain from overly use of font formatting as it makes editing posts a bit annoying Smilie

Last edited by zaxxon; 05-18-2011 at 07:50 AM.. Reason: code tags
# 2  
Old 05-18-2011
Could be an issue with your firewall or the ports the ftp server accepts so the ftp client falls back to passive mode:

https://www.unix.com/unix-dummies-que...esnt-work.html

This could be helpful too:
The File Transfer Protocol (FTP) and Your Firewall / Network Address Translation (NAT) Router / Load Balancing Router

Last edited by zaxxon; 05-18-2011 at 08:22 AM.. Reason: rephrasing, adding info
# 3  
Old 05-18-2011
FTP uses two connections, one for sending/receiving commands and another for sending/receiving data.

The data connection usually will be opened by the server to your machine. But sometimes the firewall at your end will not allow others opening connections. That is when your passive mode comes into play, which allows your machine to open the data connection.

So check your firewall configurations for this issue
# 4  
Old 05-18-2011
Firewall settings

Does the firewall settings should be checked in vsftpd conf file or where the firewall settings should be checked.

Thnx in advance
# 5  
Old 05-18-2011
The problem should be at your client machine where the permission being denied for opening a connection. You should check the firewall.

It is also possible to disable PASV mode in your server. you can check for pasv_* parameters in vsftpd.conf. By defualt it is enabled.
# 6  
Old 05-19-2011
My vsftpd conf file looks like below...Pls let me know the changes

Code:
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES


Last edited by zaxxon; 05-19-2011 at 09:09 AM.. Reason: code tags
# 7  
Old 05-20-2011
FTP error

Hi,

Am not able to fix this FTP error. And am new to scripting.Please let me knw what needs to be done.

Thnx,
Vinoth.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with FTP Script which is causing "syntax error: unexpected end of file" Error

Hi All, Please hav a look at the below peice of script and let me know if there are any syntax errors. i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
Discussion started by: mahi_mayu069
1 Replies

2. Shell Programming and Scripting

ftp error.

i try to put files to ftp server. but i got "550 Command STOR failed" error. can u help me about this error? my codes: -bash-3.00$ ftp xxx.com Connected to xxx.com 220 xxx.com X2 WS_FTP Server 7.5(39687500) Name (xxx.com:oracle): user 331 Enter password Password: 230 User logged in... (2 Replies)
Discussion started by: imtheone
2 Replies

3. AIX

FTP error

While doing ftp I am getting below error. Plz help how to resolve this? OOPS: close OOPS: child died No control connection for command: Error 0 No control connection for command: Error 0 No control connection for command: Error 0 No control connection for command: Error 0 No control... (2 Replies)
Discussion started by: suresh3566
2 Replies

4. UNIX for Advanced & Expert Users

FTP error

Hi Guys, Unable to FTP random files. Getting the following error message Net::FTP=GLOB(0x88c4c88)>>> ALLO 21754200 Net::FTP=GLOB(0x88c4c88)<<< 202 ALLO command ignored. Net::FTP=GLOB(0x88c4c88)>>> PORT 11,160,36,109,135,42 Net::FTP=GLOB(0x88c4c88)<<< 200 PORT command successful.... (1 Reply)
Discussion started by: gauravgoel83
1 Replies

5. Shell Programming and Scripting

FTP Error 553 I/O error.

Hi All, I have a problem when uploading txt file from windows to Unix server. I got 533 I/O error. I am using .bat file and it works for other batches but with this particular batch it doesn't work. thanks guys for helping in advance. (2 Replies)
Discussion started by: sfaqih
2 Replies

6. Shell Programming and Scripting

ftp error

While log in to ftp server with valid username & password I receive the following error. Please advice. ftp: Login failed. ftp: bind: Address already in use cat .netric machine hostnameofmachine login username password passwordstring .netric file set to chmod 0600 $HOME/.netrc (1 Reply)
Discussion started by: zooby
1 Replies

7. Shell Programming and Scripting

error with ftp

Hi I have like this ---------------------------------- echo "Enter ip " read ans_ip echo "Enter environment" read ans_env echo "Enter Datacenter " read ans_dc loop() { ftp -v -n hostname << EOF user user pwd bin prompt (4 Replies)
Discussion started by: coolkid
4 Replies

8. Shell Programming and Scripting

ftp error

This used to work , but know I am getting errors: 331 Enter password 230 User logged in 250 Command CWD succeed 200 Transfer mode set to BINARY local: arc-090715.tar.gz remote: arc-090715.tar.gz local: arc-090715.tar.gz: No such file or directory Any idea what is wrong? Thank you in... (2 Replies)
Discussion started by: Lenora2009
2 Replies

9. UNIX for Dummies Questions & Answers

Error when trying to FTP..

Ok, currently we ftp a file from our Unix server to windows and then to a secureftp.'something'.com site. I am trying to bypass the windows server piece. But when I try to ftp directly from Unix to secure.'something'.com site, I see this error: 220 Check Point FireWall-1 Secure FTP server running... (7 Replies)
Discussion started by: NycUnxer
7 Replies

10. UNIX for Dummies Questions & Answers

ftp error

All, I am getting the following error while I am trying to ftp a file. I am able to log into the destination server. But, when I try to put the file, I get the following error: 426 Connection closed; transfer aborted. Any ideas are appreciated. ThankYou, Radhika. (1 Reply)
Discussion started by: radhika
1 Replies
Login or Register to Ask a Question