Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 using Ubuntu Server 9.10.

I need to setup 6 accounts for users that will exclusively need sftp. When the user logs in, I need them to only have access to their home directory. I don't want them to be able to navigate to any other places in the file system. I need their ability to type commands to be limited to only the commands needed to view and transfer files back and forth to their home directory.

Can anyone offer some guidance on setting things up this way?

share|improve this question
up vote 2 down vote accepted

Try this guide for Debian, which should work perfectly for Ubuntu.

share|improve this answer

We recently had the same issue but also needed to allow ftp and scp access with the users chrooted to their home directories.

We used ProFTPD with the mod_sftp plug-in, net2ftp as a front-end to the ftp server, Sun's DSEE7 for user accounts (openldap with the posix schema would work too), and the OS's auto-mounter to mount home directories.

If only need sftp with local accounts then Cry Havok's solution is good, it was the first one we tested with.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .