Re: timestamp wrong
Bob Luckin <[email protected]> Tue, 31 May 2005 15:47:22 -0500
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, May 31, 2005 at 01:00:31PM -0500, [email protected] wrote: > Hello-- > > I am seeing ftp sessions logging the wrong timestamp in the xferlog and > syslog files. The FAQ describes the following solution. I didn't compile > the package; it came with Solaris. What do I need to do to move the > zoneinfo files? (And why do I need to do this?) > > Any help is appreciated. This problem usually happens because the FTP daemon is chrooting for security reasons - either you have set it up for anonymous FTP, or you have guest users. Once the daemon has chrooted, it cannot see any data outside the new root directory, so the relevant time zone files need to be copied into the correct place under this tree, along with other files it needs, such as the ls binary, load libraries (if dynamically linked), copies of passwd, group etc.. The ftpd man page which comes with Solaris should contain instructions on setting up the FTP daemon for anonymous access; it works similarly for guest users as well. This includes details on the time zone directory (zoneinfo). Actually, strictly speaking you probably don't need to copy the whole of this directory, just the files needed to cover the time zone for your machine. Cheers, Bob > 1. The timezone in the xferlog is wrong > Either, you compiled with support for setting the process title (SPT_TYPE) > on a machine that doesn't support this, where changing the process title > clobbers the environment and therefore zaps the TZ variable. Recompile > with SPT_TYPE set to SPT_NONE. > Systems which don't support SPT_TYPE : Aix, SGI Irix > Or, you need to copy the zoneinfo files to the ~ftp tree too. These are : > /etc/TIMEZONE > /etc/default/init > /etc/localtime (FreeBSD) > /usr/share/lib/zoneinfo/.. > > The name of the correct file in /usr/share/lib/zoneinfo depends on your > current timezone. Exact filenames depend on your operating system too. See > the man-pages for timezone(4) and zic(1M). > -- Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C"