Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 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. #
  12. # Run standalone? vsftpd can run either from an inetd or as a standalone
  13. # daemon started from an initscript.
  14. listen=NO
  15. #
  16. # This directive enables listening on IPv6 sockets. By default, listening
  17. # on the IPv6 "any" address (::) will accept connections from both IPv6
  18. # and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
  19. # sockets. If you want that (perhaps because you want to listen on specific
  20. # addresses) then you must run two copies of vsftpd with two configuration
  21. # files.
  22. listen_ipv6=YES
  23. #
  24. # Allow anonymous FTP? (Disabled by default).
  25. anonymous_enable=NO <<CHANGE THIS
  26. #
  27. # Uncomment this to allow local users to log in.
  28. local_enable=YES <<CHANGE THIS
  29. #
  30. # Uncomment this to enable any form of FTP write command.
  31. write_enable=YES <<CHANGE THIS
  32. #
  33. # Default umask for local users is 077. You may wish to change this to 022,
  34. # if your users expect that (022 is used by most other ftpd's)
  35. local_umask=022 <<CHANGE THIS
  36. #
  37. # Uncomment this to allow the anonymous FTP user to upload files. This only
  38. # has an effect if the above global write enable is activated. Also, you will
  39. # obviously need to create a directory writable by the FTP user.
  40. #anon_upload_enable=YES
  41. #
  42. # Uncomment this if you want the anonymous FTP user to be able to create
  43. # new directories.
  44. #anon_mkdir_write_enable=YES
  45. # If enabled, vsftpd will display directory listings with the time
  46. # in your local time zone. The default is to display GMT. The
  47. # times returned by the MDTM FTP command are also affected by this
  48. # option.
  49. use_localtime=YES
  50. #
  51. # Activate logging of uploads/downloads.
  52. xferlog_enable=YES
  53. #
  54. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  55. connect_from_port_20=YES
  56. #
  57. # If you want, you can arrange for uploaded anonymous files to be owned by
  58. # a different user. Note! Using "root" for uploaded files is not
  59. # recommended!
  60. #chown_uploads=YES
  61. #chown_username=whoever
  62. #
  63. # You may override where the log file goes if you like. The default is shown
  64. # below.
  65. #xferlog_file=/var/log/vsftpd.log
  66. #
  67. # If you want, you can have your log file in standard ftpd xferlog format.
  68. # Note that the default log file location is /var/log/xferlog in this case.
  69. #xferlog_std_format=YES
  70. #
  71. # You may change the default value for timing out an idle session.
  72. #idle_session_timeout=600
  73. #
  74. # You may change the default value for timing out a data connection.
  75. #data_connection_timeout=120
  76. #
  77. # It is recommended that you define on your system a unique user which the
  78. # ftp server can use as a totally isolated and unprivileged user.
  79. #nopriv_user=ftpsecure
  80. #
  81. # Enable this and the server will recognise asynchronous ABOR requests. Not
  82. # recommended for security (the code is non-trivial). Not enabling it,
  83. # however, may confuse older FTP clients.
  84. #async_abor_enable=YES
  85. ## By default the server will pretend to allow ASCII mode but in fact ignore
  86. # the request. Turn on the below options to have the server actually do ASCII
  87. # mangling on files when in ASCII mode.
  88. # Beware that on some FTP servers, ASCII support allows a denial of service
  89. # attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
  90. # predicted this attack and has always been safe, reporting the size of the
  91. # raw file.
  92. # ASCII mangling is a horrible feature of the protocol.
  93. #ascii_upload_enable=YES
  94. #ascii_download_enable=YES
  95. #
  96. # You may fully customise the login banner string:
  97. #ftpd_banner=Welcome to blah FTP service.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement