LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-17-2009, 02:25 PM   #1
chris24300
Member
 
Registered: Jul 2009
Posts: 58

Rep: Reputation: 15
FTP problems with vsftp


Hi,

I'm trying to FTP to other machines on my network and I get

Code:
ftp: connect: No route to host
I have already added a username and password. I made sure FTP was listening with netstat

Code:
 #netstat -a | grep ftp
tcp        0      0 *:ftp                       *:*                         LISTEN
Since I couldn't FTP to another computer I tried to FTP myself but I get a login failed...

Code:
# ftp 10.10.10.X
Connected to 10.10.10.X.
220 (vsFTPd 2.0.5)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (10.10.10.X:root): guest
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/home/guest
Login failed.
Is there some sort of firewall problem preventing me from connecting me to my other computers?

Why can't I FTP to myself?

Thanks,
Chris
 
Old 09-17-2009, 02:36 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
ftp: connect: No route to host
Can you ping the server ?

Quote:
500 OOPS: cannot change directory:/home/guest
user guest does not exist on your system.
Login as an existing user or anonymous (if enabled in the conf)
 
Old 09-17-2009, 02:37 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well the first message you get indicates that your computer can't even establish a basic TCP/IP connection with the server. Are you able to ping the FTP server?
 
Old 09-17-2009, 02:59 PM   #4
chris24300
Member
 
Registered: Jul 2009
Posts: 58

Original Poster
Rep: Reputation: 15
Yes, I can ping computer and i added the users n passwords with
Code:
useradd
passwd 'username'
Maybe I changed something in the config, i'll try modifying it again.
 
Old 09-17-2009, 03:07 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at
http://vault.centos.org/4.4/docs/htm...ftpd-conf.html
to configure the ftp server.
 
Old 09-18-2009, 08:11 AM   #6
chris24300
Member
 
Registered: Jul 2009
Posts: 58

Original Poster
Rep: Reputation: 15
I edited the config file and made the changes I wanted. I followed this http://www.linuxhomenetworking.com/w...P_Server_Setup guide and I still am unable to login as a user i created. The user has to be created because when I enter a non existing user and pass I get login incorrect... I enable anonymous and now I can login..? Am I not adding users properly? Is there some firewall issues that might prevent me from loggin in? local_enable is set to YES.

Thanks,
Chris
 
Old 09-18-2009, 09:51 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
The users need to have a home directory.
What happens if you login as your user ?
 
Old 09-18-2009, 12:36 PM   #8
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
chris, which distro u are using..? if its fedora or rhel5, try #setenforce 0
and try to ftp again. Also check iptables is preventing.
 
Old 09-25-2009, 08:31 AM   #9
chris24300
Member
 
Registered: Jul 2009
Posts: 58

Original Poster
Rep: Reputation: 15
I created the users with useradd and if I try to add them again it says user already exists, I can see their home folders so they have login directories. I can FTP if I use anonymous user... I cannot FTP to another machine though, I still get no route to host. I've been looking over some iptables pages to allow FTP through port 20:21 but nothing has worked yet. How can I check if iptables is blocking FTP? Where do I try #setenforce? There is nothing of the sort in the config file.

Thanks,
Chris

Last edited by chris24300; 09-25-2009 at 08:34 AM.
 
Old 09-26-2009, 11:51 AM   #10
saagar
Member
 
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
chris,


For centos:

1.From command prompt type:
#setenforce 0
#service iptables stop
in your ftp server.

Now, try to find out if vsftpd is working. If it is working, then either selinux or iptables is preventing access to your ftp server.
 
  


Reply



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
i have 2 ftp servers proftpd and vsftp lolka Linux - Newbie 7 04-19-2009 04:48 PM
setting up FTP server VSFTP sigkill Linux - Server 6 01-21-2008 05:10 AM
FTP to vsftp ramick Linux - Software 3 12-05-2003 01:46 PM
VSFTP....1 ftp root for all pmaxhammond Linux - Networking 2 10-30-2003 10:31 AM
Adding FTP users in vsFTP groovybrandon Linux - Software 3 02-27-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:48 AM.

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