2006-02-16, 08:30 AM
If not installed yet;
go to "Desktop" > "System Settings" > "Add/Remove Applications", enter your root password (or run the "system-config-packages" command as root), then tick the check box for "FTP Server", click "close", click "update" and "continue". You may be asked to insert the Fedora Core 4 installation disk #3 to continue. Go to "Desktop" > "System Settings" > "Security Level". Provide your root password, click "ok" and on the "Firewall Options" tab make sure the checkbox next to "FTP" is checked. On the "SELinux" tab under (expanded) "FTP" make sure all the checkboxes are checked except "Disable SELinux protection for ftpd daemon". Check the checkbox next to "Relabel on next reboot". (You will have to re-configure your iptables setup after your next boot as described in the Azureus section above as the relabel process overwrites your iptables files.) Click "ok". Reboot your machine to enable the new SELinux settings.
* If you are using a router you may have to forward ports 20 and 21 in order for your FTP server to work through your router's firewall. See [/url][url=http://www.portforward.com/routers.htm]http://www.portforward.com/routers.htm for instructions.
* Register a new domain name for your Fedora box, have it mapped to your IP address, and configure your /etc/hosts and /etc/sysconfig/network files as described in the web server section above.
* Open the terminal. Type:
su -
Hit enter. Type:
gedit /etc/vsftpd/vsftpd.conf
Hit enter. In gedit change "anonymous_enable=YES" to "anonymous_enable=NO". Also add a line that reads "chroot_local_user=YES" just under the line that reads "#chroot_list_file=/etc/vsftpd/chroot_list". Also uncomment (remove the "#" from) the ascii_ lines so that they read "ascii_upload_enable=YES" and "ascii_download_enable=YES". Click on the "save" icon in gedit to save your vsftpd.conf file and exit gedit. Close the terminal.
* Go to "Desktop" > "System Settings" > "Server Settings" > "Services". Type in your root password in the dialog box that appears and click on "OK". Scroll down the list and check the check box for "vsftpd". Click on the "save" icon in the Service Configuration window and then close the window. Do this for runlevel 3 as well as for runlevel 5. Reboot your machine. You should now be able to access your home user's directory with an FTP client. The host name on your client will be your registered domain name or the IP address of your Fedora Core box. The user ID will be your Fedora Core non-root user name. The password will be your Fedora Core non-root user's password. (I recommend turning off passive mode on the client to speed up transfers. If you use gftp as a client you should edit /etc/sysconfig/iptables-config on the server and add "ip_nat_ftp" into the "IPTABLES_MODULES="" directive so that it reads "IPTABLES_MODULES="ip_nat_ftp". Then reboot your machine.)
:) johnny06