trying to set up an ftp server on RedHat Fedora 6.x
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
trying to set up an ftp server on RedHat Fedora 6.x
Just got a dedicated server, and installed ProFTPD Server on it
The thing is, I dont want to set up the domain on this new server till I know what is going on.
I tried accessing the ftp via ftp://192.168.1.1/ (ip address changed of course)
and I am getting nothing.
I suppose I need to change the settings?
I looked in the firewall settings and found that there was no entry for port 21. So I added the line:
Accept If protocol is TCP and source is [my ip here] and destination port is 21
Any help or pointers would be much appreciated.
Did you restart the firewall after changing the ruleset? That syntax doesn't look like iptables to me (maybe some funny Red Hat config syntax). If you do "iptables -L" is your new rule shown?
Are you using active or passive FTP to connect? If in active mode you must make sure that the server can open a connection for the data channel back to the client. If passive mode, the client must also be able to connect to the FTP server's passive mode port range (remember, FTP requires two TCP connections, one for control (port 21) and one for data). The passive mode port range should be defined in the ProFTPD config file, but it's been awhile since I played around with it. You'll need to make sure these ports are allowed through the firewall as well. It's generally recommended to use passive mode FTP (in case the client is behind a NAT or has a firewall on), but this is a decision made by the client, not the server.
In no particular order:
- Is the proftpd running?
- Check your config in proftpd.conf
- Where did you try ftp-ing from? the server or your local machine?
-- Try ftping from the server to itself on the looppack interface (lo) 127.0.0.1
- What's your output for "sudo iptables -L" ?
Fedora usually only supports the last two releases, so I believe F7 is no longer supported. This is an important point, as it means no new security patches are being made for Fedora 6. If you want a long term supported distribution and like the Red Hat way of doing stuff, I highly recommend CentOS.
Actually its Fedora 8, and it has just been installed. What is the usual release schedule? I dont want to end up being redundant too quickly.
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp state NEW
so the port is open, and if I try ftp 127.0.0.1 I get Connection Refused.
There is no heading for PassivePort in the ProtFTPD conf file, and in the configuration options PASV port range is set to default.
What is the default range? I can't find any mention of it. I presume I need to add another line to the firewall to handle these ports.
So after doing some more reading I realise I shouldn't be trying to log into ftp with root.
I have set up a new user, but it can't log in to ftp either.
Checked the denied ftp users in webmin and my new user is not listed.
I gather that a user's login for ftp should not be the same as their system login, due to the fact that if a security breach in the ftp program allowed a user to access the command line they would have privledges to do quite a bit of damage. I suppose this is why webmin has options to set username aliases (?)
Obviously I have more reading to do, but some pointers would be appreciated.
Ok I hadn't started the service.
thought the service would be started automatically (i guess that is xinetd).
So I started the service and tried to log in using my ftp client, but now I am getting a password error:
How did you start the service, Ed? I try service start proftpd and get unrecognized service...