HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //opt/puppetlabs/puppet/share/augeas/lenses/dist/tests/test_vsftpd.aug
module Test_vsftpd =

test Vsftpd.lns get "listen=YES\nmdtm_write=false\n" =
  { "listen" = "YES" }
  { "mdtm_write" = "false" }

test Vsftpd.lns get "listen=on\n" = *

test Vsftpd.lns get "local_umask=0777\n" = { "local_umask" = "0777" }

test Vsftpd.lns get "listen_port=ftp\n" = *

test Vsftpd.lns get "ftp_username=ftp_user\n" = { "ftp_username" = "ftp_user" }

(* There must not be spaces around the '=' *)
test Vsftpd.lns get "anon_root = /var/lib/vsftpd/anon" = *


let conf = "# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
#

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
allow_writeable_chroot=YES

"

test Vsftpd.lns get conf =
  { "#comment" = "Example config file /etc/vsftpd/vsftpd.conf" }
  {}
  { "#comment" = "The default compiled in settings are fairly paranoid. This sample file" }
  { "#comment" = "loosens things up a bit, to make the ftp daemon more usable." }
  { "#comment" = "Please see vsftpd.conf.5 for all compiled in defaults." }
  {}
  { "#comment" = "Allow anonymous FTP? (Beware - allowed by default if you comment this out)." }
  { "anonymous_enable" = "YES" }
  {}
  { "#comment" = "Default umask for local users is 077. You may wish to change this to 022," }
  { "#comment" = "if your users expect that (022 is used by most other ftpd's)" }
  { "local_umask" = "022" }
  {}
  { "#comment" = "You may specify an explicit list of local users to chroot() to their home" }
  { "#comment" = "directory. If chroot_local_user is YES, then this list becomes a list of" }
  { "#comment" = "users to NOT chroot()." }
  { "chroot_list_enable" = "YES" }
  { "#comment" = "(default follows)" }
  { "chroot_list_file" = "/etc/vsftpd/chroot_list" }
  {}
  {}
  { "pam_service_name" = "vsftpd" }
  { "userlist_enable" = "YES" }
  { "tcp_wrappers" = "YES" }
  { "allow_writeable_chroot" = "YES" }
  {}