I need to create Directory inside on DocumentRoot. How to set permissions?
I tried vbut getting Forbidden
You don’t have permission to access /mailboxtool/ on this server.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
how to get list of groups ??
how to change user home directory to /var/www/html ??
Same Question
I can not change user home directory to /var/www/html
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 anonymous_enable=NO local_enable=YES write_enable=YES dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
chroot_local_user=YES allow_writeable_chroot=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.
For creating FTP accounts I recommend you to first set up a secure FTP with vsftpd: https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-on-ubuntu-12-04. Each new user you add in Linux will serve to connect as FTP user.
To create a new directory in /var/www/html execute: cd /var/www/html -> will navigate to the html directory mkdir your-directory-name -> will create the directory named “your-directory-name”
I have the same problem.
So near and yet so far.