[scponly] /chroot_dir//home_dir/ problem
Matthew Glover
mglover at mdah.state.ms.us
Fri Nov 14 15:32:35 EST 2003
I'm running a Mandrake 8.2 box, and I'm pretty sure I've got scponlyc
set up properly. I can use WinSCP to connect, no problem. I've set up
my chroot directory as /pub and I have /pub/home inside it for each of
my users' home directories. After reading through the mailing list
archives all day, I thought that setting my test user's home directory
in /etc/password to "/pub//home/testuser" would cause it to chroot to
/pub and then chdir to /pub/home/testuser, but the chdir doesn't happen.
What am I doing wrong? My debug log is below.
Nov 14 16:27:09 filebox [23722]: chrooted binary in place, will chroot()
Nov 14 16:27:09 filebox [23722]: 3 arguments in total.
Nov 14 16:27:09 filebox [23722]: ^Iarg 0 is scponlyc
Nov 14 16:27:09 filebox [23722]: ^Iarg 1 is -c
Nov 14 16:27:09 filebox [23722]: ^Iarg 2 is /usr/lib/ssh/sftp-server
Nov 14 16:27:09 filebox [23722]: opened log at LOG_AUTHPRIV, opts 0x00000029
Nov 14 16:27:09 filebox [23722]: retrieved home directory of
"/pub//home/testuser" for user "testuser"
Nov 14 16:27:09 filebox [23722]: chrooting to dir: "/pub"
Nov 14 16:27:09 filebox [23722]: setting uid to 503
Nov 14 16:27:09 filebox [23722]: processing request:
"/usr/lib/ssh/sftp-server"
Nov 14 16:27:09 filebox [23722]: running: /usr/lib/ssh/sftp-server
(username: testuser(503), IP/port: xxx.xxx.xxx.xxx 1301 22)
Thanks, Matthew
More information about the scponly
mailing list