Issues w/ timezones on gssftpd
Philip Prindeville
philipp at redfish-solutions.com
Thu Nov 9 15:47:56 EST 2006
Howdy,
I'm running krb5-workstation-1.4.3-5.1 on FC5, and seeing:
Oct 30 09:09:14 mail ftpd[9129]: connection from 62.101.42.1 () at Mon Oct 30 09:09:14 2006
Oct 30 09:09:14 mail ftpd[9129]: ANONYMOUS FTP LOGIN FROM 62.101.42.1, (IEUser@)
Oct 30 16:09:15 mail ftpd[9129]: 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[2]?
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().
Thanks,
-Philip
More information about the krbdev
mailing list