Thanks for your kind information.
I have a doubt? Normal user account point to default user home directory( /home/user1/). In this case I access FTP through this user it point to /hom/user1/. Can I access apache document root (/var/www/html/new directory/ using this user1 account. I am using Fillzilla client.
I tried, this..
root@digidom:~# apt-get install vsftpd
root@digidom:~# cp /etc/vsftpd.conf /etc/vsftpd.conf.back
root@digidom:~# egrep -v ’^#|^$’ /etc/vsftpd.conf
listen=YES
anonymousenable=NO
localenable=YES
writeenable=YES
dirmessageenable=YES
uselocaltime=YES
xferlogenable=YES
connectfromport20=YES
securechrootdir=/var/run/vsftpd/empty
pamservicename=vsftpd
rsacertfile=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsaprivatekeyfile=/etc/ssl/private/ssl-cert-snakeoil.key
chrootlocaluser=YES
allowwriteablechroot=YES
root@digidom:~# useradd -m -d /var/www/html/ -s /sbin/nologin mailftp
root@digidom:~# mkdir mailboxtool
root@digidom:/var/www/html# ll
total 32
drwxr-xr-x 3 root root 4096 Dec 15 05:26 ./
drwxr-xr-x 3 root root 4096 Dec 12 10:28 ../
-rw-r–r– 1 root root 11510 Dec 12 10:28 index.html
drwxr-xr-x 2 root root 4096 Dec 15 05:26 mailboxtool/
-rw-r–r– 1 root root 23 Dec 12 11:03 phpinfo.php
In this Time I get error “Forbidden You don’t have permission to access ”
Kindly solve my issue.
I have the same problem.
So near and yet so far.