Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
install vsftpd on fedora core 4
#1

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

Reply
#2

He is my pretty vsftpd.conf.

 



Code:
##### LOCAL IN ONLY - NO ANON
#local_enable=YES
#write_enable=YES
#anonymous_enable=NO
#nopriv_user=ftp
#chroot_local_user=YES

##### ANON ONLY
#local_enable=NO
#write_enable=NO
#anonymous_enable=YES
#anon_upload_enable=NO
#anon_mkdir_write_enable=NO
#chown_uploads=NO

##### ANON DOWN - PASSWORD UP
local_enable=YES
write_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
chown_uploads=NO
chroot_local_user=YES
nopriv_user=ftp

##### ALL

data_connection_timeout=120
idle_session_timeout=600
dirmessage_enable=YES
ascii_upload_enable=NO
ascii_download_enable=NO
xferlog_enable=YES
xferlog_file=/var/log/vsftpd/vsftpd.log
chroot_list_enable=NO
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
ftpd_banner=VSFTPD ROCKS!!!!
background=YES
listen=YES
ls_recurse_enable=NO




 

Simply select one of the above sections above ALL .. and you will get three options.

 

1. No Anon access, password only

2. Anon access only

3. Anon access for downloading, password access for users.

 

:)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)