Proftpd Virtual User

Hello Community

I seem to be running into a problem setting up a virtual www-data user in Proftpd in order to upload my website.
I am doing everything correctly as I have the same setup on a Pi running Raspios.

The command I used is ‘sudo ftpasswd --passwd --file=/etc/proftpd/ftpd.passwd --name=webserver --uid=33 --gid=33 --home=/var/www/ --shell=/bin/false’

Now when I try to ftp in it always reports an incorrect password. So I now I edited proftpd.conf and found the authorization missing and
added the following
AuthOrder mod_auth_file.c mod_auth_unix.cori
AuthUserFile /etc/proftpd/ftpd.passwd
AuthPAM off
RequireValidShell off

Now I can logon with user webserver however the directory instead of being /var/www is dietpi_userdata.
I am now lost. What am I missing? Any help would be very much appreciated.

I guess you need to change DefaultRoot inside /etc/proftpd/proftpd.conf as describe on our online docs

Actually I found an easy workaround for now. I simply changed DefaultRoot to ~ as described in the Proftpd manual and Virtual users works properly, however I cannot logon as Dietpi which I have no need for anyway.
Thanks for the feedback.