3 test Vsftpd.lns get "listen=YES\nmdtm_write=false\n" =
5 { "mdtm_write" = "false" }
7 test Vsftpd.lns get "listen=on\n" = *
9 test Vsftpd.lns get "local_umask=0777\n" = { "local_umask" = "0777" }
11 test Vsftpd.lns get "listen_port=ftp\n" = *
13 test Vsftpd.lns get "ftp_username=ftp_user\n" = { "ftp_username" = "ftp_user" }
15 (* There must not be spaces around the '=' *)
16 test Vsftpd.lns get "anon_root = /var/lib/vsftpd/anon" = *
19 let conf = "# Example config file /etc/vsftpd/vsftpd.conf
21 # The default compiled in settings are fairly paranoid. This sample file
22 # loosens things up a bit, to make the ftp daemon more usable.
23 # Please see vsftpd.conf.5 for all compiled in defaults.
25 # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
28 # Default umask for local users is 077. You may wish to change this to 022,
29 # if your users expect that (022 is used by most other ftpd's)
32 # You may specify an explicit list of local users to chroot() to their home
33 # directory. If chroot_local_user is YES, then this list becomes a list of
34 # users to NOT chroot().
35 chroot_list_enable=YES
37 chroot_list_file=/etc/vsftpd/chroot_list
40 pam_service_name=vsftpd
43 allow_writeable_chroot=YES
47 test Vsftpd.lns get conf =
48 { "#comment" = "Example config file /etc/vsftpd/vsftpd.conf" }
50 { "#comment" = "The default compiled in settings are fairly paranoid. This sample file" }
51 { "#comment" = "loosens things up a bit, to make the ftp daemon more usable." }
52 { "#comment" = "Please see vsftpd.conf.5 for all compiled in defaults." }
54 { "#comment" = "Allow anonymous FTP? (Beware - allowed by default if you comment this out)." }
55 { "anonymous_enable" = "YES" }
57 { "#comment" = "Default umask for local users is 077. You may wish to change this to 022," }
58 { "#comment" = "if your users expect that (022 is used by most other ftpd's)" }
59 { "local_umask" = "022" }
61 { "#comment" = "You may specify an explicit list of local users to chroot() to their home" }
62 { "#comment" = "directory. If chroot_local_user is YES, then this list becomes a list of" }
63 { "#comment" = "users to NOT chroot()." }
64 { "chroot_list_enable" = "YES" }
65 { "#comment" = "(default follows)" }
66 { "chroot_list_file" = "/etc/vsftpd/chroot_list" }
69 { "pam_service_name" = "vsftpd" }
70 { "userlist_enable" = "YES" }
71 { "tcp_wrappers" = "YES" }
72 { "allow_writeable_chroot" = "YES" }