Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_vsftpd.aug
1 module Test_vsftpd =
2
3 test Vsftpd.lns get "listen=YES\nmdtm_write=false\n" =
4   { "listen" = "YES" }
5   { "mdtm_write" = "false" }
6
7 test Vsftpd.lns get "listen=on\n" = *
8
9 test Vsftpd.lns get "local_umask=0777\n" = { "local_umask" = "0777" }
10
11 test Vsftpd.lns get "listen_port=ftp\n" = *
12
13 test Vsftpd.lns get "ftp_username=ftp_user\n" = { "ftp_username" = "ftp_user" }
14
15 (* There must not be spaces around the '=' *)
16 test Vsftpd.lns get "anon_root = /var/lib/vsftpd/anon" = *
17
18
19 let conf = "# Example config file /etc/vsftpd/vsftpd.conf
20 #
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.
24 #
25 # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
26 anonymous_enable=YES
27 #
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)
30 local_umask=022
31 #
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
36 # (default follows)
37 chroot_list_file=/etc/vsftpd/chroot_list
38 #
39
40 pam_service_name=vsftpd
41 userlist_enable=YES
42 tcp_wrappers=YES
43 allow_writeable_chroot=YES
44
45 "
46
47 test Vsftpd.lns get conf =
48   { "#comment" = "Example config file /etc/vsftpd/vsftpd.conf" }
49   {}
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." }
53   {}
54   { "#comment" = "Allow anonymous FTP? (Beware - allowed by default if you comment this out)." }
55   { "anonymous_enable" = "YES" }
56   {}
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" }
60   {}
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" }
67   {}
68   {}
69   { "pam_service_name" = "vsftpd" }
70   { "userlist_enable" = "YES" }
71   { "tcp_wrappers" = "YES" }
72   { "allow_writeable_chroot" = "YES" }
73   {}
74