LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2008, 03:16 AM   #1
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Rep: Reputation: 15
Error In Ftp


while doing ftp i get error which look like

421 Service not available.
i have checked the server to which i want to connect by ftp
vsftpd service is running there...
si can you please tell me what should i do?... i am using RHEL4.0
 
Old 05-29-2008, 03:25 AM   #2
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
check these settings in vsftp.conf

Quote:
anonymous_enable=NO
local_enable=YES
Or, a complete example:

Quote:
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
nopriv_user=nobody
chroot_list_enable=YES
chroot_local_user=YES
background=YES
listen=YES
and then restart it:
/etc/init.d/vsftpd restart

Last edited by grizly; 05-29-2008 at 03:27 AM.
 
Old 05-30-2008, 03:19 AM   #3
nirmit
Member
 
Registered: Feb 2008
Posts: 73

Original Poster
Rep: Reputation: 15
ftp error

thank you for your suggestion.. i have done all the changes that you have told. but same error comes.. can u tell me what should i do now?...
 
Old 05-30-2008, 03:38 AM   #4
bkcreddy17
Member
 
Registered: Feb 2008
Location: India-Hyderabad
Distribution: RHEL and Fedora
Posts: 171

Rep: Reputation: 15
Do this:
#chkconfig vsftpd on
#service vsftpd restart

Even though if you are getting error,
uninstall and install again.
 
Old 05-30-2008, 05:22 AM   #5
grizly
Member
 
Registered: Nov 2006
Location: Melbourne Australia
Distribution: Centos, RHEL, Debian, Ubuntu, Mint
Posts: 128

Rep: Reputation: 16
Quote:
Originally Posted by nirmit View Post
thank you for your suggestion.. i have done all the changes that you have told. but same error comes.. can u tell me what should i do now?...
Yes.


Post the contents of: /var/log/vsftpd/vsftpd.log

Then, describe how you have "Checked the service is running", and tell me how you are connecting to it. Ie, which ftp program are you using?, have you tried disabling firewalls?, have you checked on another machine?, what is the output of: /var/log/messages when the error occurs?

Think about the problem, and what you would need to diagnose it without being able to touch or see it physically, it would help me to help you.
 
Old 05-30-2008, 09:58 AM   #6
Ajax4Hire
LQ Newbie
 
Registered: May 2004
Location: sol 3 (3rd planet from sun)
Distribution: Redhat 9.0
Posts: 8

Rep: Reputation: 0
In this order:

Can you see ftp server, ping it:
>ping ftp-server

Yes,
Is the ftp server running?
>ps aux | grep -v grep | grep vsftpd

Variation on this theme are:
is ftp server started automatically:
>/sbin/chkconfig --list | grep ^vsftpd

Is the ftp server configured properly?
There is a lot that can go wrong here but...check
userlist_enable=, userlist_deny=, tcp_wrappers=, anonymous_enable=,

Is the ftp server setup to allow ftp services?
Check Firewall/routing settings
>/sbin/iptables -L
>cat /etc/hosts /etc/hosts.deny /etc/hosts.allow
If you are running FedoraCore/RedHat then as root:
>system-config-securitylevel
make sure the ftp service is enabled.

also, check the output of the vsftpd log file for clues:
>cat /var/log/vsftpd.log
>cat /var/log/messages
>cat /var/log/secure

Now you are getting out on your own.
The log files give lots of clues as to what goes right and what goes wrong.
The /var/log directory is like a newspaper of you system.
Scan it for interesting tidbits about your box, you will be surprised at what you find in these log files, harddisk errors, mis-configured software, security breaches; I know I am finding new interesting bits of info in the /var/log directory.

I know this is not an answer but it is a "teach you to fish" routine.
 
  


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
Help With Ftp Error bmutandavari Linux - General 1 12-31-2007 07:59 AM
FTP Error tajamari Linux - Software 1 12-19-2007 12:00 AM
FTP Error gururaj Linux - Networking 1 09-05-2006 11:39 AM
FTP error humayun Linux - General 1 05-18-2006 06:08 AM
ftp error! klintonray Linux - Software 8 08-02-2003 11:33 PM


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