Re: Where to find the configuration documentation??
Brought to you by:
xystrus
From: Derek M. <co...@pi...> - 2003-08-06 15:32:32
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Aug 06, 2003 at 07:47:33AM -0700, Melissa Young wrote: > Dear Derek, > > Thank you so much for your messages. Sorry about my > complaint. The documentation should be good enough by > your explanation. Ok, good. Thanks. :) > Here are my configuration files: > > 1) #grep tester /home/chroot/etc/passwd > tester:x:212:4:sftp > tester:/home/chroot/home/tester:/usr/local/bin/rssh I think this was supposed to be one line, right? Like this: tester:x:212:4:sftp tester:/home/chroot/home/tester:/usr/local/bin/rssh Also, more imortantly, the entry is the same in /etc/passwd, right? The passwd file entries in the chroot jail are only used to get the username and userid once inside the jail. The other stuff is only used BEFORE that, so it must be correct in /etc/passwd. > 2) #cat /usr/local/etc/rssh.conf > allowsftp > umask = 022 > chrootpath=/home/chroot > user=tester:011:02:/home/chroot # sftp with chroot This looks fine. > 3) # find /home/chroot > /home/chroot [SNIP] Unfortunately, I really have no way to verify if your chroot jail is set up correctly, though I don't see anything obvious missing. I don't have access to a Sun box. This is why I state in the documentation (the file CHROOT) that I can not provide support for setting up chroot jails. Sorry. But like I said, I don't see anything obvious missing, EXCEPT that you have not configured syslogd on your system to listen to an additional socket in /home/chroot/dev/log. But then it may not be possible on Solaris 2.5.1 either, I don't know. See the man page for syslogd(8) to verify... If you can do it, I suggest that you do so; it may help explain what is going on. Then look in your logs for error messages from rssh. I really think the most likely explanation is that rssh is crashing, because you changed vsnprintf() to vsprintf(). And as I said, if that's the case, there's nothing I can do about it. Best I could do would be to write my own implementation of vsnprintf, or copy one from someone's C library, but I'm not going to do that. It's too much effort. All I can suggest at that point is to upgrade to Solaris 2.6 or later, or find external libraries which have the *nprintf functions to link against... Incidentally, you could try running rssh directly, and see what happens. If it dumps core, then you can be sure this is the problem. If it doesn't, it may still be; hard to tell. You might also try running it through a debugger, if you know how to do that. Look through your system logs for error messages. That may turn up something useful. - -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/MR91djdlQoHP510RAjfxAJ0Rvkf9Sx2+qKVY1cqYHF4jz6OjPgCeL7Wt 3ea9evNwFr62hZLwZ7eWXW4= =9a4E -----END PGP SIGNATURE----- |