Last active
July 11, 2021 06:45
-
-
Save firstval/af4e324dde0fe406e16904db2a8cd6fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [HOWTO] Setting FTP Server | |
| Non Anonymous / Secure FTP | |
| 1. yum install vsftpd #after that type | |
| service vsftpd restart | |
| 2.#configure vsftpd.conf | |
| vi /etc/vsftpd/vsftpd.conf | |
| 3.#set the following accordingly | |
| anonymous_enable=NO | |
| userlist_enable=NO | |
| listen_ipv6=NO | |
| listen=YES | |
| pasv_enable=YES | |
| pasv_min_port=1024 | |
| pasv_max_port=1048 | |
| pasv_addr_resolve=YES | |
| pasv_address=xx.xx.xx.xx | |
| 4.#add ftp users | |
| useradd user1 | |
| 5.#set password for the user | |
| passwd user1 | |
| #then type desired password | |
| 6.#add created user in user_list | |
| vi /etc/vsftpd/user_list | |
| #delete all other entries except root, then add created user | |
| 7.#change boolean settings | |
| cd /selinux/booleans | |
| #then type the following commands | |
| setsebool -P allow_ftpd_full_access=1 | |
| setsebool -P ftp_home_dir=1 | |
| #if its not working type: | |
| service vsftpd restart | |
| credits:Dinom Myer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment