Portal Home > Knowledgebase > Articles Database > Pure-FTP Config for Change home directory
Pure-FTP Config for Change home directory
Posted by bdspice, 09-20-2015, 09:00 AM |
Hi,
I have installed nginx on my server. so my home directory is /var/www. i setup a server block named faceur.conf . so i configure my root path on this file to /var/www/faceur/html . then i install pure-ftp for ftp login. i try to use imgshot script. imgshot script need ftp login. on pure-ftp,root path is /home/user/. now i need to change this root path of my domain to to /home/user/domain/ from /var/www/faceur.html on server block. or need to change this root path of ftp to /var/www/faceur/html from /home/user/.
but when i try to change server block on etc/nginx/sites-available/faceur.conf to /home/user/domain/html from /var/www/faceur/html.but its showing 403 error on browser.server block file is correct.but i cant find how to change home directory from /home/user to /var/www for pure-ftp.
i search on google and found nothing. Please help me.
|
Posted by Srv24x7, 09-20-2015, 09:25 AM |
Hi,
Try creating a new ftp user and define the home directory using the option "-d"
pure-pw useradd user -u ftpuser -d /var/www/user
|
Posted by bdspice, 09-24-2015, 03:36 PM |
Can you Please describe in details? suppose my user id is "kungfu" and home directory is /var/www/kungfu/html/ what should i write down on terminal? is this right?
|
Posted by Srv24x7, 09-27-2015, 09:43 AM |
Hi,
Try the below command as it is:
pure-pw useradd kungfu -u ftpuser -d /var/www/kungfu/html
|
Posted by bdspice, 09-27-2015, 07:29 PM |
its not working. maybe there is some permission problem.i am quite from this. thanks buddy.
|
Posted by DivinePrad, 09-28-2015, 06:14 AM |
Are you getting any error while trying to FTP?
|
Posted by bdspice, 09-28-2015, 06:49 AM |
yes.i was. but now its all working.a user here named "TheArmoAdmin" help me to make it work as i want. all problem now solved.now i am waiting to know how he did it and i mistaken.
|
Add to Favourites Print this Article
Also Read