Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks

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: wiki.tony-su.com/How_to_restrict_sftp_user_in_Ubuntu –  mnml Feb 23 '11 at 14:47
add comment

1 Answer

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
add comment

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.