Best way to restrict FTP access to a single directory?

Posted by John Debs on Server Fault See other posts from Server Fault or by John Debs
Published on 2011-02-24T17:06:01Z Indexed on 2011/02/24 23:27 UTC
Read the original article Hit count: 175

I have a VPS running Ubuntu 10.04, and I'd like to give someone SFTP access to a single directory, but prevent them from seeing anything else on the system. What's the best way to pull this off?

I considered removing "everyone" permissions from everything on the system, but that seems like a really blunt tool for this problem (and one that'll cause other issues) - I'm hoping there's a better option here.

Edit: I appreciate the answers! (And I learned a bunch reading/researching through them). I ended up finding and using this guide from Linode as it spelled all the steps: http://library.linode.com/security/sftp-jails/

© Server Fault or respective owner

Related posts about ubuntu

Related posts about permissions