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 would like to know if it's possible to have sftp access with rbash enabled on the users, if not Is there any alternative to rbash?


share|improve this question
Try it, see what happens, and if you run into any errors let us know and we'll try to help out. – larsks Feb 22 '11 at 16:38
I tried but Its not allowing it, I found an alternative here: – mnml Feb 23 '11 at 14:47

from what i've learned - rbash won't work with sftp. a shell, scp, yes. sftp; no.

probably the best alternative is rssh. it allows for chrooting and specific access to any/all of: scp, sftp, cvs, rdist, and rsync.

the trickiest part is creating per-user chroot "jails", as each jail must contain everything (directory structure and shared libraries) to the binaries you allow to be run (e.g. sftp which usually resides in /usr/libexec/sftp-server). but you can even use "hard links" among the several jails to save the space of having a copy of every shared library in each jail.

share|improve this answer

Your Answer


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.