#!/usr/bin/env bash set -u DESC="Fixe proftp (serveur:bigboss et client:tiny)" HELP=" Bigboss et tiny doivent avoir été configurés par baseConfig. ATTENTION, le fichier suivant est modifié : - /etc/proftpd/proftpd.conf Une copie de l'original est faite avec l'extension .vdn " repairProftpd() { echo echo "Repair proftpd" vdn-ssh root@bigboss " [ ! -e /etc/proftpd/proftpd.conf.vdn ] && \ cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf.vnd grep -q '^> /etc/proftpd/proftpd.conf # A basic anonymous configuration, no upload directories. User ftp Group nogroup # We want clients to be able to login with \"anonymous\" as well as \"ftp\" UserAlias anonymous ftp # Cosmetic changes, all files belongs to ftp user DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off # Limit the maximum number of anonymous logins MaxClients 10 # We want 'welcome.msg' displayed at login, and '.message' displayed # in each newly chdired directory. DisplayLogin welcome.msg DisplayChdir .message # Limit WRITE everywhere in the anonymous chroot DenyAll EOF systemctl enable proftpd systemctl restart proftpd " } run() { setErrorHandler echoStart requireSshGuests bigboss tiny repairProftpd echoDoneWithTestErrors }