Secure Shell
sftp running in chroot env Feb 11 2010 04:13PM
Steve Szabo (steve g szabo gmail com)
I've configured sftp to run in a chroot env which seems to work
however I am unable to get syslog to log the sftp activities within
the chroot.

If I connect via sftp to a non-chroot env the daemon will log the
transactions as expected:


Feb 11 10:35:20 XXXXXXXXXX sftp-server[11797]: [ID 800047]
open "/home/someguy/test/file" flags READ mode 0666

I also need the activities to be logged from within the chroot - can
someone please give me some pointers?

Here is my config running under Solaris 10:

auth.debug /var/adm/openssh.log

SyslogFacility AUTH
LogLevel DEBUG
Subsystem sftp /opt/openssh/libexec/sftp-server -l DEBUG

Match User sample
ChrootDirectory /home/chroot

chroot env:










?it is better to solve the right problem the wrong way than the wrong
problem the right way?
-- Doug McIlroy

[ reply ]


Privacy Statement
Copyright 2010, SecurityFocus