# Proftpd Virtual User

**URL:** <https://dietpi.com/forum/t/proftpd-virtual-user/6483>\
**Category:** Troubleshooting\
**Created:** [4 April 2022 23:29 UTC](https://dietpi.com/forum/t/proftpd-virtual-user/6483 "2022-04-04T23:29:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![2cansan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/2/8797f3/32.png) [@2cansan](https://dietpi.com/forum/u/2cansan)\
**Post date:** [4 April 2022 23:29 UTC](https://dietpi.com/forum/t/proftpd-virtual-user/6483/1 "2022-04-04T23:29:28Z")

</div>

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.  
Thanks

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [5 April 2022 08:42 UTC](https://dietpi.com/forum/t/proftpd-virtual-user/6483/2 "2022-04-05T08:42:35Z")

</div>

I guess you need to change DefaultRoot inside /etc/proftpd/proftpd.conf as describe on our online docs [https://dietpi.com/docs/software/file\_servers/#proftpd](https://dietpi.com/docs/software/file_servers/#proftpd)

---

<div class="post-metadata">

**Author:** ![2cansan](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/2/8797f3/32.png) [@2cansan](https://dietpi.com/forum/u/2cansan)\
**Post date:** [6 April 2022 03:46 UTC](https://dietpi.com/forum/t/proftpd-virtual-user/6483/3 "2022-04-06T03:46:21Z")

</div>

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.
