cancel
Showing results for 
Search instead for 
Did you mean: 

sftp with /bin/false shell

SOLVED
Go to solution
Pawan_1
Frequent Advisor

sftp with /bin/false shell

We are trying to restrict the user for the sftp account and it does not work with shell being set to /bin/false in password file. This works fine with ftp or vsftp. Hence is there any other shell meant to be used with sftp ?
6 REPLIES
Ivan Ferreira
Honored Contributor
Solution

Re: sftp with /bin/false shell

Please see:

http://sublimation.org/scponly/wiki/index.php/Main_Page

And also try:

http://www.debian-administration.org/articles/94
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: sftp with /bin/false shell

second option is great and that is what you need exactly..

Regarding first option,--"scponly is an alternative 'shell' (of sorts) for system administrators who would like to provide access to remote users to both read and write local files without providing any remote execution priviledges"...i am not sure what is the advantage by NOT giving execute but write(delete/modify) access.
ralfbosz
Occasional Visitor

Re: sftp with /bin/false shell

We are using rssh (http://www.pizzashack.org/rssh/).

This also has the option to chroot the user to a given directory (you have to create the chroot enviroment yourself).
Pawan_1
Frequent Advisor

Re: sftp with /bin/false shell

Thanks the First Option worked fine.
Pawan_1
Frequent Advisor

Re: sftp with /bin/false shell

Working.......
skt_skt
Honored Contributor

Re: sftp with /bin/false shell

u did not asign point to Ivan..