Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. # Example config file /etc/vsftpd.conf
  2. #
  3. # The default compiled in settings are fairly paranoid. This sample file
  4. # loosens things up a bit, to make the ftp daemon more usable.
  5. # Please see vsftpd.conf.5 for all compiled in defaults.
  6. #
  7. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  8. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  9. # capabilities.
  10. #
  11. # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
  12. anonymous_enable=YES
  13. anon_root=/var/www/html/vup/ftpdir
  14. local_root=/home/ftp
  15. passwd_chroot_enable=YES
  16. local_enable=NO
  17. write_enable=YES
  18. download_enable=YES
  19. no_anon_password=YES
  20.  
  21.  
  22. pasv_enable=YES
  23. pasv_min_port=2000
  24. pasv_max_port=2100
  25. #
  26. # need to create a directory writable by the FTP user.
  27. anon_upload_enable=YES
  28. # Uncomment this if you want the anonymous FTP user to be able to create
  29. # new directories.
  30. anon_mkdir_write_enable=NO
  31. #
  32. dirmessage_enable=NO
  33. #
  34. # Activate logging of uploads/downloads.
  35. xferlog_enable=YES
  36. #
  37. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  38. connect_from_port_20=YES
  39. #
  40. # If you want, you can arrange for uploaded anonymous files to be owned by
  41. # a different user. Note! Using "root" for uploaded files is not
  42. # recommended!
  43. chown_uploads=YES
  44. chown_username=www-data
  45. #
  46. # You may override where the log file goes if you like. The default is shown
  47. # below.
  48. xferlog_file=/var/log/vsftpd.log
  49. #
  50. # If you want, you can have your log file in standard ftpd xferlog format.
  51. # Note that the default log file location is /var/log/xferlog in this case.
  52. #xferlog_std_format=YES
  53. #
  54. # You may change the default value for timing out an idle session.
  55. #idle_session_timeout=600
  56. #
  57. # You may change the default value for timing out a data connection.
  58. #data_connection_timeout=120
  59. #
  60. # It is recommended that you define on your system a unique user which the
  61. # ftp server can use as a totally isolated and unprivileged user.
  62. nopriv_user=ftp
  63. #
  64. # Enable this and the server will recognise asynchronous ABOR requests. Not
  65. # recommended for security (the code is non-trivial). Not enabling it,
  66. # however, may confuse older FTP clients.
  67. #async_abor_enable=YES
  68. #
  69. # By default the server will pretend to allow ASCII mode but in fact ignore
  70. # the request. Turn on the below options to have the server actually do ASCII
  71. # mangling on files when in ASCII mode.
  72. # Beware that on some FTP servers, ASCII support allows a denial of service
  73. # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
  74. # predicted this attack and has always been safe, reporting the size of the
  75. # raw file.
  76. # ASCII mangling is a horrible feature of the protocol.
  77. #ascii_upload_enable=YES
  78. #ascii_download_enable=YES
  79. #
  80. # You may fully customise the login banner string:
  81. #ftpd_banner=Welcome to blah FTP service.
  82. #
  83. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  84. # useful for combatting certain DoS attacks.
  85. #deny_email_enable=YES
  86. # (default follows)
  87. #banned_email_file=/etc/vsftpd.banned_emails
  88. #
  89. # You may specify an explicit list of local users to chroot() to their home
  90. # directory. If chroot_local_user is YES, then this list becomes a list of
  91. # users to NOT chroot().
  92. # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
  93. # the user does not have write access to the top level directory within the
  94. # chroot)
  95. #chroot_local_user=YES
  96. #chroot_list_enable=YES
  97. # (default follows)
  98. #chroot_list_file=/etc/vsftpd.chroot_list
  99. #
  100. # You may activate the "-R" option to the builtin ls. This is disabled by
  101. # default to avoid remote users being able to cause excessive I/O on large
  102. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  103. # the presence of the "-R" option, so there is a strong case for enabling it.
  104. #ls_recurse_enable=YES
  105. #
  106. # When "listen" directive is enabled, vsftpd runs in standalone mode and
  107. # listens on IPv4 sockets. This directive cannot be used in conjunction
  108. # with the listen_ipv6 directive.
  109. listen=YES
  110. #
  111. # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
  112. # sockets, you must run two copies of vsftpd with two configuration files.
  113. # Make sure, that one of the listen options is commented !!
  114. #listen_ipv6=YES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement