Re: /var/log/messages internal-sftp time stamp problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the last episode (Jun 04), Greg Wooledge said:
> On Wed, Jun 03, 2009 at 05:42:23PM +0100, Syy Bak wrote:
> > internal-sftp subsystem are one hour behind systems clock as if
> > internal-sftp subsystem would only observe UTC (GMT) time zone without
> [...] 
> > not sure sure if this is something to do with chrooting)?
> 
> Running the internal sftp inside a chroot could definitely account for
> that.  Your operating system may have a file or a symbolic link somewhere
> in /etc which determines the default time zone; or it may just use the TZ
> environment variable.  They're all different.

Shouldn't sshd still have the timezone information from before it chrooted,
though?  Internal-sftp doesn't exec a new process, so as long as it called
some function that read /etc/localtime before the chroot it should know the
correct timezone.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux