Skip to content

Instantly share code, notes, and snippets.

@wen-long
Created May 29, 2014 00:23
Show Gist options
  • Save wen-long/8b70492adef7b39abe48 to your computer and use it in GitHub Desktop.
Save wen-long/8b70492adef7b39abe48 to your computer and use it in GitHub Desktop.

touch /etc/vsftpd.user_list(使其为空)

nano /etc/vsftpd.conf

userlist_deny=YES
local_enable=YES
write_enable=YES
listen=YES
chroot_local_user=NO
userlist_enable=YES
local_umask=022
use_localtime=YES

nano /etc/pam.d/vsftpd

#auth       required    pam_listfile.so item=user sense=deny 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment