[scponly] /chroot_dir//home_dir/ problem

wby oblyr joe at sublimation.org
Mon Nov 17 10:18:51 EST 2003


looks like 2 people have reported this problem so far.

i will look into this and do scponly 3.9 this week.  other patches from 
the last few months will be incorporated as well.  

joe

Matthew Glover wrote 
this message on Fri, Nov 14, 2003 at 15:32 -0600:
> 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
> 
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly

-- 
----

PGP KEY: http://www.sublimation.org/contact.html
PGP Key fingerprint = EC4B 0DA5 B4F6 BDDD 9176 55D6 3A6A 7D63 158F 22D2 



More information about the scponly mailing list