Rijen

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

May 25th, 2014
43
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×