FTP user WebRoot

NethServer Version: 7.6 rev2
Module: FTP, Webserver

I have created a new FTP user (The test user with homedir in /ftp worked) and set it to use /var/www/html as a homedir. It connects successfully, as I can see a folder called well-known with the acme-challenges in it, but when I try to make a new file/folder it just says not working…

I want to have a program directly make changes to the main website, so I can’t use a virtualHost

With following command you can set permissions for ftp users to write to /var/www/html and subfolders:

setfacl -m u:ftp:rwx -R /var/www/html
setfacl -m d:u:ftp:rwX -R /var/www/html

This may be not optimal for security as FTP is unencrypted and any ftp user can write to the webroot.
If possible, create a specific user, set permissions on /var/www/html and use SFTP instead.