LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2003, 12:25 PM   #1
szf2
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Rep: Reputation: 0
Newbie ?: Why doesn't my FTP server work?


Hi all. Sorry for the super noob question, but I'm new to the whole Linux thing as of a few days ago. Anyway, recently installed RedHat 9.0 on a local machine. Very impressed with the OS, but I am having troubles FTPing to my NT machines. FTP starts up on the Linux machine, but it can't connect to local IPs (i.e. IPs of my NT machines). Also, I can't connect to the LInux machine from the NT machines. Basically just trying to find info. on what all I need to configure to get FTP working on the Linux machine. FWIW, I'm making the FTP connections on the NT machines using WS_FTP.

Links to pages for configuring FTP for RH 9.0 would be awesome or just filenames I should open and modify.

Much obliges.
 
Old 08-29-2003, 02:09 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

Can you ping the machines from each other (ie are they networked ok?)

Can you connect to the ftp server from the srever itself?
ftp 127.0.0.1

Make sure that the service is started then try again.:
service vsftpd start

To make it run on each boot:
chkconfig --level 345 vsftpd on

Also make sure you login as user and not root. If you can connect localy then make sure you don't have firewall rules blocking connections:
iptables -L
 
Old 08-29-2003, 03:50 PM   #3
szf2
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the answer, but I spoke too soon. After reading some pages I decided to pop in ISO image 1. Looked through the packages installed, and sure enough, FTP was not (where is the hanging your head in shame face when you need one?). At least I now have VNC so I don't have to keed switching desks, plus know how to start up the vsftp daemon (as per your post). I'll read up on configuring vsftp before I ask anymore questions .

Thanks again.

Last edited by szf2; 08-29-2003 at 03:53 PM.
 
Old 08-29-2003, 03:54 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
No problem. Just post another reply if you run into problems.
 
Old 09-04-2003, 04:37 PM   #5
szf2
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
OK, so I installed vsftpd and it starts/stops upon calling "service vsftpd start/stop". Also, I created /etc/xinetd.d/vsftpd so the vsftpd starts automatically. Now FTP to 127.0.0.1 works, but the FTP server rejects requests from the Windows box. Note that I can ping the Linux box from the Win box (and vica versa). I am guessing I need to modify /etc/xinetd.d/vsftpd to accept FTP from any location (or preferably just computers on the same subnet), but I am not sure exactly how to do this (or even if this is what I need to do).
 
Old 09-04-2003, 04:45 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I think it is more than likely you have a firewall issue. What rules do you have in place:
iptables -L
 
Old 09-05-2003, 06:33 PM   #7
szf2
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for all the help. Great suggestions! I looked into the iptables thing and found out tcp and udp is blocked from everywhere except my local DNS. So, I make an exception for incoming tcp and udp to be accepted for the IP address of the NT machine. Then did:

iptables-save -c > /etc/sysconfig/iptables

Unfortunately, FTP still doesn't work. I know the requests are being sent because I can see the counts going up for the NT machine's IP address when I do

iptables -L -v

Grrrrrrr. I'll look into it more on Monday and keep this thread updated as I go along.
 
Old 09-05-2003, 06:37 PM   #8
szf2
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9.0
Posts: 17

Original Poster
Rep: Reputation: 0
Never mind! I did not run chkconfig on vsftpd and it looks like my /etc/xinetd.d/vsftpd files isn't doing the job of starting vsftpd. Anyway, started up vsftpd manually and FTP now works! .

Thanks again for the help!

Last edited by szf2; 09-05-2003 at 06:42 PM.
 
Old 09-06-2003, 07:13 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
No problem - good to see you got it working.
 
Old 09-06-2003, 08:43 AM   #10
timmy01
LQ Newbie
 
Registered: Sep 2003
Posts: 22

Rep: Reputation: 15
how to stop ftp ?

hi

can anyone tell how to stop the ftp on Redhad 9?
by command and/or webmin,

thnks

Tim
 
Old 09-06-2003, 08:47 AM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

Don't worry but next time it is better if you start a new thread rather than latching onto an existing one unless the problem is similar identical and you have something to contribute.

The command you are probably looking for is:
service vsftpd stop

To stop it running on boot:
chkconfig --level 345 vsftpd off
 
Old 09-14-2003, 02:21 AM   #12
sixoseven
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
ok this worked once for me, now when I try to run service, the system doesn't know where it is, even su to root.

which service
/usr/bin/which: no service in (/usr/java/jdk1.3.1_09/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mbowen/bin)
 
Old 09-14-2003, 02:23 AM   #13
sixoseven
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
nevermind. /sbin/service
 
Old 09-21-2003, 09:58 AM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Sorry for the late reply - I have been on holiday for a week.

When you su - use "su -" this will load a new shell for root and give you roots paths as specified in ~/.bash_profile
 
  


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
Newbie trying to work with mail, and web server Rambo Linux - Newbie 6 10-09-2005 11:42 AM
suse installation with own ftp server does not work kvtournh Linux - Networking 0 09-06-2005 06:29 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 09:23 AM
The best FTP server for a newbie setup? zhenwu Linux - Newbie 1 08-16-2001 06:34 AM


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