Back to Blog
Centos ftp server6/28/2023 These commands are: STOR, DELE, RNFR, RNTO, MKD, RMD, APPE and SITE. # This controls whether any FTP commands which change the filesystem are allowed or not. This must be enable for any non-anonymous login to work, including virtual users. If enabled, normal user accounts in /etc/passwd (or wherever your PAM config references) may be used to log in. # Controls whether local logins are permitted or not. If enabled, both the usernames ftp and anonymous are recognised as anonymous logins. # Controls whether anonymous logins are permitted or not. We recommend you make the following changes: /etc/vsftpd/nf ![]() Install vsftpd from the standard CentOS repo: yum install vsftpd -yĪfter installation, you need to edit /etc/vsftpd/nf according to your need. A OUTPUT -p tcp -sport 1024: -dport 1024: -m state -state ESTABLISHED,RELATED -j ACCEPTĪpply changes: iptables-restore /etc/sysconfig/iptables A INPUT -p tcp -sport 1024: -dport 1024: -m state -state ESTABLISHED -j ACCEPT A OUTPUT -p tcp -dport 20 -m state -state ESTABLISHED -j ACCEPT A INPUT -p tcp -sport 20 -m state -state ESTABLISHED,RELATED -j ACCEPT A OUTPUT -p tcp -dport 21 -m state -state NEW,ESTABLISHED -j ACCEPT ![]() A INPUT -p tcp -sport 21 -m state -state ESTABLISHED -j ACCEPT Set them to 'on' by executing: /etc/sysconfig/selinuxĮdit iptables config (/etc/sysconfig/iptables) to open FTP-specific TCP ports: /etc/sysconfig/iptables ![]() If the values are 'off': allow_ftpd_full_access -> off To elevate privileges use: sudo su -Ĭheck values of the SELinux policy booleans related to FTP: getsebool -a | egrep 'ftp_home_dir|passive|ftpd_full_access' This tutorial will guide you through the process of setting up vsftpd to allow a user to upload files to his or her home directory using FTP.Īll commands in this guide are to be performed by a user with root privileges. How to setup vsftpd FTP server on CentOS 6
0 Comments
Read More
Leave a Reply. |