]> git.openstreetmap.org Git - chef.git/blob - cookbooks/ftp/templates/default/vsftpd.conf.erb
Switch to custom PAM file for FTP
[chef.git] / cookbooks / ftp / templates / default / vsftpd.conf.erb
1 # Run standalone?  vsftpd can run either from an inetd or as a standalone
2 # daemon started from an initscript.
3 listen=NO
4
5 # This directive enables listening on IPv6 sockets. By default, listening
6 # on the IPv6 "any" address (::) will accept connections from both IPv6
7 # and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
8 # sockets. If you want that (perhaps because you want to listen on specific
9 # addresses) then you must run two copies of vsftpd with two configuration
10 # files.
11 listen_ipv6=YES
12
13 # Allow anonymous FTP? (Disabled by default).
14 anonymous_enable=NO
15
16 # Uncomment this to allow local users to log in.
17 local_enable=YES
18
19 # Uncomment this to enable any form of FTP write command.
20 write_enable=YES
21
22 #
23 # Default umask for local users is 077. You may wish to change this to 022,
24 # if your users expect that (022 is used by most other ftpd's)
25 local_umask=022
26
27 anon_upload_enable=NO
28 anon_mkdir_write_enable=NO
29 anon_other_write_enable=NO
30
31 # Activate directory messages - messages given to remote users when they
32 # go into a certain directory.
33 dirmessage_enable=YES
34
35 # If enabled, vsftpd will display directory listings with the time
36 # in  your  local  time  zone.  The default is to display GMT. The
37 # times returned by the MDTM FTP command are also affected by this
38 # option.
39 use_localtime=YES
40
41 # Activate logging of uploads/downloads.
42 xferlog_enable=YES
43
44 # Make sure PORT transfer connections originate from port 20 (ftp-data).
45 connect_from_port_20=YES
46
47 # It is recommended that you define on your system a unique user which the
48 # ftp server can use as a totally isolated and unprivileged user.
49 #nopriv_user=ftpsecure
50
51
52 # Enable this and the server will recognise asynchronous ABOR requests. Not
53 # recommended for security (the code is non-trivial). Not enabling it,
54 # however, may confuse older FTP clients.
55 #async_abor_enable=YES
56
57 # You may fully customise the login banner string:
58 #ftpd_banner=Welcome to blah FTP service.
59
60 # You may restrict local users to their home directories.  See the FAQ for
61 # the possible risks in this before using chroot_local_user or
62 # chroot_list_enable below.
63 chroot_local_user=YES
64
65 # You may specify an explicit list of local users to chroot() to their home
66 # directory. If chroot_local_user is YES, then this list becomes a list of
67 # users to NOT chroot().
68 # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
69 # the user does not have write access to the top level directory within the
70 # chroot)
71 #chroot_local_user=YES
72 #chroot_list_enable=YES
73 # (default follows)
74 #chroot_list_file=/etc/vsftpd.chroot_list
75 #
76 # You may activate the "-R" option to the builtin ls. This is disabled by
77 # default to avoid remote users being able to cause excessive I/O on large
78 # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
79 # the presence of the "-R" option, so there is a strong case for enabling it.
80 #ls_recurse_enable=YES
81
82 # This string is the name of the PAM service vsftpd will use.
83 pam_service_name=vsftpd
84
85 # This option specifies the location of the RSA certificate to use for SSL
86 # encrypted connections.
87 rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
88 rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
89 ssl_enable=NO
90
91 guest_enable=YES
92 guest_username=ftp
93
94 pasv_min_port=30000
95 pasv_max_port=30999