[scponly] couldn't chroot to /home/scp

Joakim Franzen joakim at island.liu.se
Wed Jul 21 09:31:55 EDT 2004


Thanks for the quick response which helped. The problem was that the 
scponlyc binary was not setuid root.

Thanks,
Joakim

David Ramsden wrote:

> On Wed, Jul 21, 2004 at 02:36:10PM +0200, Joakim Franzen wrote:
> 
>>I am having a problem chrooting with scponlyc . I have tried to create 
>>the scp-account both with scpjailer and with the script included with 
>>the debian package.
>>
> 
> 
> Did you compile scponly from source or are you using the Debian package?
> 
> 
>>I keep getting "couldn't chroot to /home/scp" when I try logging in with 
>>WinSCP. Have tried different settings win Winscp without any luck. Is 
>>there a problem with my chroot installation or what could be wrong.
>>
> 
> [snip]
> 
> Is the scponlyc binary setuid root on your system?
> Does it work when you use, for example FileZilla[1]?
> 
> Can you increase the logging on both client and server to help you? Turn
> on debugging mode in scponly (toggled on/off from a file - documentation
> should tell you exactly).
> 
> Of course, you can try logging in via a UNIX machine and using "sftp
> -vv ..." for extra verbose mode.
> 
> [1] http://filezilla.sf.net/
> 
> Regards,
> David.



More information about the scponly mailing list