Bug 31469

Summary: When set ftpchroot use Version 6.00LS ftpd,the client can not see the right localtime.
Product: Base System Reporter: dour <dour01>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description dour 2001-10-24 10:30:00 UTC
When set ftpchroot use Version 6.00LS ftpd,the client can not see the right file time (server localtime).
but in normal not chroot set,client can see the right.
Comment 1 Peter Pentchev 2001-10-24 13:55:11 UTC
On Wed, Oct 24, 2001 at 02:22:20AM -0700, dour wrote:
> 
> >Number:         31469
> >Category:       bin
> >Synopsis:       When set ftpchroot use Version 6.00LS ftpd,the client can not see the right localtime.
> >Arrival-Date:   Wed Oct 24 02:30:00 PDT 2001
> >Originator:     dour
> >Release:        4.4
> >Organization:
> >Environment:
> FreeBSD localhost 4.4-STABLE FreeBSD 4.4-STABLE #7: Mon Sep 24 14:20:31 CST 2001     root@localhost:/usr/src/sys/compile/myk  i386
> >Description:
> When set ftpchroot use Version 6.00LS ftpd,the client can not see the right file time (server localtime).
> but in normal not chroot set,client can see the right.

The 'right file time' depends on the existence and contents of the
/etc/localtime file.  Create an /etc directory in your user's root
directory, copy the /etc/localtime file there and see if this fixes
the problem.

G'luck,
Peter

-- 
If there were no counterfactuals, this sentence would not have been paradoxical.
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2001-10-24 13:55:28 UTC
State Changed
From-To: open->feedback

Does creating an /etc/localtime file in the chroot area help?
Comment 3 dour 2001-10-24 15:12:53 UTC
Thanks,it work.
But I must mkdir cp .. mkdir cp .. is it right?

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Comment 4 Peter Pentchev 2001-10-25 11:31:37 UTC
On Wed, Oct 24, 2001 at 07:20:02AM -0700, dsfd dfs wrote:
> The following reply was made to PR bin/31469; it has been noted by GNATS.
> 
> From: dsfd dfs <dour01@yahoo.com>
> To: freebsd-gnats-submit@FreeBSD.org
> Cc:  
> Subject: Re: bin/31469: When set ftpchroot use Version 6.00LS ftpd,the client can not see the right localtime.
> Date: Wed, 24 Oct 2001 07:12:53 -0700 (PDT)
> 
>  Thanks,it work.
>  But I must mkdir cp .. mkdir cp .. is it right?

Yes, you must copy/install the /etc/localtime file in the chroot
area of each user in the ftpchroot file.

G'luck,
Peter

-- 
"yields falsehood, when appended to its quotation." yields falsehood, when appended to its quotation.
Comment 5 Peter Pentchev freebsd_committer freebsd_triage 2001-10-25 13:14:21 UTC
State Changed
From-To: feedback->closed

The submitter reports that copying /etc/localtime into the chroot area 
fixes the problem.