john
2008-May-12 20:56 UTC
openssh-5.0p1: sftp transfer logging doesn't appear to work with chroot environment [SOLVED]
On Sun, May 4, 2008 at 12:00 PM, Dan Yefimov <dan at nf15.lightwave.net.ru> wrote:> On Sun, 4 May 2008, john wrote: > > > > What exact steps have you taken to accomplish what Damien proposed? > > > > > Yes sorry Dan, I should have been specific. > > > > I created a file in my chroot root called /home/dev/auth.log > > > > Then I edited syslogd to write auth log to that location and restarted syslogd. > > > It was wrong yet from this point. You should have created directory named 'dev' > located right in your chroot directory. No syslogd.conf editing was necessary. > After that you should have reloaded your syslogd with additional > '-a <path_to_your_chroot_directory>/dev/log' parameter. And that's all! > -- > > Sincerely Your, Dan. > >Sorry for the delayed response, Dan and Peters pointer to using the syslogd -a option worked well. This is solution is fine for us, if a bit arcane. Since I can imagine this being a frequent request/complaint/misunderstanding about the way chrooting works with sftp it might save people a lot of time in the future if the man page gave a little note and example of how to log from within an sftp chroot. Thanks very much for your help. I really appreciate it! John
Peter Stuge
2008-May-13 00:49 UTC
openssh-5.0p1: sftp transfer logging doesn't appear to work with chroot environment [SOLVED]
On Mon, May 12, 2008 at 01:56:49PM -0700, john wrote:> Sorry for the delayed response,No problem.> Dan and Peters pointer to using the syslogd -a option worked well.Glad to hear it worked out!> Since I can imagine this being a frequent > request/complaint/misunderstanding about the way chrooting works > with sftp it might save people a lot of time in the future if the > man page gave a little note and example of how to log from within > an sftp chroot.I think that's a good idea! Can you send a patch for the manpage text? //Peter