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'm running a webserver and I've setup two groups. One with just me, and another with me and a collaborator. I've chmodded to 755 my htdocs folder and I gave a specifically "upload" dir the group shared with my collab. So now my collab (via sym link) is able to upload some files via sftp, but he can also traversing all the directories of the web server. I've the chmodded to -R 751 the htdocs dir, and now he is not able to see everything, but the web server (obviusly) doesn't work anymore until I restore the original permission.

Do you guys have any guess?

Thank you in advance.

share|improve this question

Depending on the ftp server, you can chroot him to a particular subdirectory. Search for the name of your ftp server (e.g. vsftpd, pure-ftpd, proftpd) and "chroot"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.