1module Test_vsftpd = 2 3test Vsftpd.lns get "listen=YES\nmdtm_write=false\n" = 4 { "listen" = "YES" } 5 { "mdtm_write" = "false" } 6 7test Vsftpd.lns get "listen=on\n" = * 8 9test Vsftpd.lns get "local_umask=0777\n" = { "local_umask" = "0777" } 10 11test Vsftpd.lns get "listen_port=ftp\n" = * 12 13test Vsftpd.lns get "ftp_username=ftp_user\n" = { "ftp_username" = "ftp_user" } 14 15(* There must not be spaces around the '=' *) 16test Vsftpd.lns get "anon_root = /var/lib/vsftpd/anon" = * 17 18 19let 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). 26anonymous_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) 30local_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(). 35chroot_list_enable=YES 36# (default follows) 37chroot_list_file=/etc/vsftpd/chroot_list 38# 39 40pam_service_name=vsftpd 41userlist_enable=YES 42tcp_wrappers=YES 43allow_writeable_chroot=YES 44 45" 46 47test 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 75