Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.