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 Ubuntu server and wanted to know if there was a way to only allow a user (connecting via FTP and SSH) read and write access to their own /home/user/ directory and not let them read or write to anything else?

Thanks for your help! :)

share|improve this question
up vote 0 down vote accepted

Here's a chroot jail for FTP on Ubuntu HowTo which should cover your requirements for FTP - securing your server for SSH users is a more complicated topic and will really depend upon what you want your users to be able to do (by default, file ownership and permissions will prevent users from altering files they don't own, but allowing users SSH access and allowing them to broadcast their passwords in plaintext over FTP is not ideal).

share|improve this answer
Awesome! How did I miss that from the config :) – user58059 Oct 24 '10 at 0:51

Your Answer


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