Bug 1214

Summary: some log messages ignore TZ
Product: Portable OpenSSH Reporter: Steve Siegfried <u1081>
Component: sshdAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WORKSFORME    
Severity: normal CC: u1081
Priority: P2    
Version: 4.3p2   
Hardware: ix86   
OS: Linux   

Description Steve Siegfried 2006-08-06 14:06:50 AEST
Fedora core 5 on a Pentium 4 w/openssh-server-4.3p2-4:  Some log messages are ignoring the TZ variable (I'm in "CST6CDT"):
Aug  5 17:06:35 zjod sshd[17101]: Invalid user test from 202.152.180.55
Aug  5 22:06:35 zjod sshd[17102]: input_userauth_request: invalid user test
Aug  5 17:06:35 zjod sshd[17101]: pam_unix(sshd:auth): check pass; user unknown
Aug  5 17:06:35 zjod sshd[17101]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=202.152.180.55
Aug  5 17:06:35 zjod sshd[17101]: pam_succeed_if(sshd:auth): error retrieving information about user test
Aug  5 17:06:37 zjod sshd[17101]: Failed password for invalid user test from 202.152.180.55 port 55329 ssh2
Aug  5 22:06:37 zjod sshd[17102]: Failed password for invalid user test from 202.152.180.55 port 55329 ssh2
Aug  5 22:06:37 zjod sshd[17102]: Received disconnect from 202.152.180.55: 11: Bye Bye
Comment 1 Darren Tucker 2006-08-06 17:12:57 AEST
Actually the TZ environment variable is there but because the privsep slave is chrooted it does not have access to the /etc/localtime file that tells how to interpret the TZ string.

The workaround is to create /etc/localtime inside the chroot ("mkdir /var/empty/etc && cp -a /etc/localtime /var/empty/etc/" if you have the chroot in the standard place).
Comment 2 Darren Tucker 2006-10-07 11:45:39 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.