2

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! :)

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940

1 Answers1

0

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).

danlefree
  • 2,873
  • 1
  • 18
  • 20