Rijen

Работающий конфиг vsftpd

May 25th, 2014
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@vs ~ # cat /etc/pam.d/vsftpd
  2. # Standard behaviour for ftpd(8).
  3. auth sufficient pam_pwdfile.so pwdfile /etc/vsftpd/passwd debug
  4. account required pam_permit.so
  5. root@vs ~ # cat /etc/vsftpd.conf
  6. # основные настройки сервера
  7. listen=YES
  8. anonymous_enable=NO
  9. use_localtime=YES
  10. force_dot_files=YES
  11. connect_from_port_20=YES
  12. pam_service_name=vsftpd
  13. hide_ids=YES
  14. write_enable=YES
  15. local_umask=022
  16.  
  17. # настройки логирования
  18. xferlog_enable=YES
  19. dual_log_enable=YES
  20.  
  21. # настройки виртуального окружения
  22. guest_enable=YES
  23. secure_chroot_dir=/var/run/vsftpd
  24. local_enable=YES
  25. chroot_local_user=YES
  26. user_config_dir=/etc/vsftpd/users
  27. virtual_use_local_privs=YES
  28.  
  29. # chown
  30. chown_uploads=YES
  31. chown_username=www-data
  32.  
  33. allow_writeable_chroot=YES
  34. root@vs ~ # cat /etc/vsftpd/users/dog
  35. guest_username=www-data
  36. local_root=/home/ftp/dog
RAW Paste Data