Bug 1214 - some log messages ignore TZ
Summary: some log messages ignore TZ
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 4.3p2
Hardware: ix86 Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 14:06 AEST by Steve Siegfried
Modified: 2006-10-07 11:45 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.