As changed in release 2.x, rssh_chroot_helper again reads in the rssh-config, but it does not make use of the logfacility-param. So it will always report with facility LOG_USER and priority LOG_INFO or LOG_ERR (see ch_start_logging() in rssh_chroot_helper.c). That does not make sense. Look at the following extract of an sftp-session using OpenSSH with sftp-logging enabled:
sshd[1051]: [ID 800047 local3.info] Accepted keyboard-interactive/pam for user from 1.2.3.4 port 56792 ssh2 sshd[1059]: [ID 800047 local3.info] subsystem request for sftp rssh[1061]: [ID 702911 local3.info] setting umask to 022 rssh[1061]: [ID 702911 local3.info] line 29: configuring user user rssh[1061]: [ID 702911 local3.info] setting user's umask to 022 rssh[1061]: [ID 702911 local3.info] allowing scp to user user rssh[1061]: [ID 702911 local3.info] allowing sftp to user user rssh[1061]: [ID 702911 local3.info] chrooting user to /home/user rssh[1061]: [ID 702911 local3.info] chroot cmd line: /usr/lib/sshd/libexec/rssh_chroot_helper 2 "/usr/lib/sshd/libexec/sftp-server" rssh_chroot_helper[1061]: [ID 702911 user.info] new session for user, UID=60000 rssh_chroot_helper[1061]: [ID 702911 user.error] user's home dir is /home/user rssh_chroot_helper[1061]: [ID 702911 user.error] couldn't find /home/user in chroot jail rssh_chroot_helper[1061]: [ID 702911 user.error] chrooted to /home/user rssh_chroot_helper[1061]: [ID 702911 user.error] changing working directory to / (inside jail) sftp-server[1061]: [ID 800047 local3.info] Starting sftp-server logging for user user. sftp-server[1061]: [ID 800047 local3.info] umask control is on. sftp-server[1061]: [ID 800047 local3.info] client is not permitted to chmod. sftp-server[1061]: [ID 800047 local3.info] client is not permitted to chown. sftp-server[1061]: [ID 800047 local3.info] realpath . sftp-server[1061]: [ID 800047 local3.info] sftp-server finished. rssh_chroot_helper logs 4 different messages which are NOT errors in my opinion - I did not specify a chrootpath as I don't need it. Also, logging "new session for user, UID=60000" is not really interesting, expect in debug-mode. As an error, I would expect "Permission denied", "Directory not found" or something like this. So, please overwork rssh_chroot_helper's code: 1. Let it use the log facility specified in rssh.conf 2. Only log messages that are interesting in a production environment - think about a compile-flag to build debug-code Can I help you with this? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ rssh-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rssh-discuss
