LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 03: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, 03:36 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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, 03:37 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 03: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, 04:07 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Take a look at
http://vault.centos.org/4.4/docs/htm...ftpd-conf.html
to configure the ftp server.
 
Old 09-18-2009, 09: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, 10:51 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
The users need to have a home directory.
What happens if you login as your user ?
 
Old 09-18-2009, 01: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, 09: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 09:34 AM.
 
Old 09-26-2009, 12:51 PM   #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


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


All times are GMT -5. The time now is 03:41 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