I wish to share my hosting, if I make a FTP account specific for a directory, user will access only that directory or he can hack/access something from main directory (mysql/directories etc)
| SitePoint Sponsor |
I wish to share my hosting, if I make a FTP account specific for a directory, user will access only that directory or he can hack/access something from main directory (mysql/directories etc)


That person could easily upload a page (PHP, perl, any language the web server will run) which gives complete access to all the files in the hosting account in all directories.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.
how can I bound him on a specific directory


Do you have root access to this server?
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.
Yes


Create a new user (not just an FTP account, an actual system user) for this other person and make sure the permissions on all directories other than this user's hosting directory don't allow him access at the file system level.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.
thanks


If you are on any cpanel server, adding a additional FTP user will give him access only to the folder you specify.

Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Bookmarks