Wednesday, January 14, 2009

Winscp and ssh user with jail for Website

Look at this very useful page:

Download from there,

and add in the line useradd ... the desired group (e.g.: -g www-data).

Then run script as follows:

./ USERNAME /var/www/vhosts/YOURDOMAIN.COM/.bashrc /var/www/vhosts/YOURDOMAIN.COM

Change the access rights for desired folder(s):

chown 775 /var/www/vhosts/YOURDOMAIN.COM/htdocs -R

That's all!

No comments: