By chrooting it, it's root ("/") becomes the directory where you've
chrooted.Hence, as far as I understand, it can't "see" your "/etc/localtime";
you'd need to create inside the chroot directory.

On Fri, Sep 25, 2009 at 06:35, LEVAI Daniel <l...@ecentrum.hu> wrote:

> On Friday 25 September 2009 11.16.14 you wrote:
> > On 2009-09-25, LEVAI Daniel <l...@ecentrum.hu> wrote:
> > > Hi!
> > >
> > > My sftp client is displaying the files' dates in the wrong timezone.
> > >
> > > @localhost $ sftp remotehost
> > > sftp> mkdir test
> > > sftp> ls -l
> > > drwxr-x--- [...] Sep 25 06:53 test
> > >
> > > That is GMT, 2 hours minus the my timezone, what is CEST(GMT+2).
> > > However on the remote host the directory has the correct timestamp:
> > >
> > > @remotehost $ ls -ld ./test
> > > drwxr-x--- [...] Sep 25 08:53:10 2009 test//
> > >
> > >
> > > Both the client and the remote host has the file
> > > /usr/share/zoneinfo/Europe/Budapest copied overt to /etc/localtime.
> > >
> > > Anyone has an idea what could cause this behaviour?
> >
> > Is the sftp server chroot'ed?
> Yes, indeed. So if I want correct dates I must create the etc/localtime
> file
> under the chroot?
>
>
> Daniel
>
> --
> LIVAI Daniel
> PGP key ID = 0x4AC0A4B1
> Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1

Reply via email to