[scponly] No prompt on login
Mike Jones
news-scponly at shouldbe.net
Thu Jan 22 10:23:08 EST 2004
> >I've installed scponly using apt on Debian and then created a user
> >with: useradd -d /home/username1 -s /usr/sbin/scponlyc -g users -m
> >username1
> >
> So the chrooted version. Did you create a chroot jail? *)
I have now downloaded scpjailer and used the --useradd command on it. My
main aim was to get this working with SFTP and using (I think) the tip
you gave:
mkdir /home/scponly/usr/lib
ln -s /bin/sftp-server /home/scponly/usr/lib/
I got one user working... Don't ask me how though because when I went
through the:
scpjailer --useradd
process again its not working. It seems to me (I'm probably wrong) that
its something to do with the password. Do I just do a normal:
passwd username
Or do I have to run a special command to set the users password?
> >And then I gave it a password
> >When I tried to login it logins in fine and displays the last login
> >details etc but then just sits there without issuing a prompt.
> >
> Well thats by design ... scponly is for scp, not for
> interactive login. If you want to see debug messages,
> increase the debug value found in /etc/scponly/debuglevel
Makes sense. Sorry was a little confused at the time on how to find out
why my sftp client wasn't connecting
Many thanks.
Mike
More information about the scponly
mailing list