Created
October 2, 2015 15:46
-
-
Save viebig/ff3d5911623fad0ed3bc to your computer and use it in GitHub Desktop.
Vftpd Amazon Ami Virtual Users not pam_pwdfile.so
This file contains 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
Security groups | |
21-22 | |
1024-1048 | |
/etc/vsftpd/vsftpd.conf | |
listen=YES | |
anonymous_enable=NO | |
local_enable=YES | |
write_enable=YES | |
local_umask=022 | |
local_root=/var/www/ftproot | |
chroot_local_user=YES | |
hide_ids=YES | |
user_config_dir=/etc/vsftpd_user_conf | |
guest_enable=TRUE | |
virtual_use_local_privs=YES | |
pam_service_name=vsftpd | |
nopriv_user=vsftpd | |
guest_username=vsftpd | |
pasv_enable=YES | |
pasv_min_port=1024 | |
pasv_max_port=1048 | |
port_enable=YES | |
pasv_address=ELASTIC_IP | |
/etc/pam.d/vsftpd | |
auth required pam_userdb.so db=/etc/vsftpd/vsftpd-virtual-user | |
account required pam_userdb.so db=/etc/vsftpd/vsftpd-virtual-user | |
session required pam_loginuid.so | |
vusers.txt | |
user1 | |
pass1 | |
user2 | |
pass2 | |
# db_load -T -t hash -f vusers.txt vsftpd-virtual-user.db | |
# chmod 600 vsftpd-virtual-user.db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment