Ich habe jetzt die zweite Variante gewählt, da ich unbedingt in der /srv/www Ordner muss. Ich habe in der proftpd.config angegeben:
defaultroot /srv/www
aber ich lande wieder im gleichen Ordner "/home/username/public_html".
Meine config sieht so aus:
# (C)
www.proftpd.de # updated 2003-05-12
# by Stonki
ServerIdent on "Willkommen auf Meinem Server"
ServerName "localhost"
ServerType standalone
DefaultServer on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Note that this ONLY works in standalone mode
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nogroup
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
defaultroot /srv/www
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
<Global>
UserPassword jens 10yIOA0vDI2BQ
</Global>