Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a few ftp folders for other people to upload files, and the ftp client prevents them from accessing folders and files outside of their ftp folder during an ftp session. This is expected and good. However... they can still upload a php file and run commands from the php file to view files outside of their ftp folder. They can even delete folders outside of the ftp folder by uploading a php file and running a bash command using the php exec function.

How can I prevent this? I want to have ftp folders which limit access to that folder and its subfolders only. Does cPanel have a way to configure this security? Can I make some simple changes to file or folder permissions to accomplish this?

share|improve this question

closed as off-topic by HopelessN00b, Ward, Jenny D, RobM, Tim Brigham Feb 22 at 15:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.