Issues w/ timezones on gssftpd
philipp at redfish-solutions.com
Thu Nov 9 15:47:56 EST 2006
I'm running krb5-workstation-1.4.3-5.1 on FC5, and seeing:
Oct 30 09:09:14 mail ftpd: connection from 22.214.171.124 () at Mon Oct 30 09:09:14 2006
Oct 30 09:09:14 mail ftpd: ANONYMOUS FTP LOGIN FROM 126.96.36.199, (IEUser@)
Oct 30 16:09:15 mail ftpd: get /pub/915resolution-0.5.2-3.src.rpm
I'm in the Mountain timezone (GMT -0700). It looks like the ftpd
that is getting forked off and chroot()ing to ~ftp/ is either zapping
its environment or else losing access to some system file that gives
the timezone and time offset.
I haven't dug into glibc and what the /etc/localtime file does... but
I'm guessing that this might need to be copied into the ~ftp/etc/
directory. Is that correct?
Or can ftpd simple export the current timezone via the setenv(TZ, ...)
or tweaking the value of extern char *tzname?
I'll stare at it for a while, and see if I can come up with a fix... It
might be as simple as calling localtime() and discarding the return value
before calling chroot().
More information about the krbdev