Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112543 - net-ftp/vsftpd-2.0.3-r2 wrong time log
Summary: net-ftp/vsftpd-2.0.3-r2 wrong time log
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 12:39 UTC by Martin Gramatke
Modified: 2006-01-09 23:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the use_localtime option (vsftpd-2.0.1-use_localtime.patch,2.20 KB, patch)
2005-11-15 04:18 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Gramatke 2005-11-14 12:39:35 UTC
Here is a snippet from /var/log/vsftpd: 
  
Mon Nov 14 21:25:17 2005 [pid 4998] CONNECT: Client "192.168.1.12"   
Mon Nov 14 20:25:17 2005 [pid 4998] [anonymous] FAIL LOGIN: Client   
"192.168.1.12"   
Mon Nov 14 20:25:24 2005 [pid 4998] [ftp] OK LOGIN: Client "192.168.1.12",   
anon password "password"   
 
21:25 is localtime (CET, Berlin, Germany), 20:25 is (maybe) GMT. I would 
expect localtime for all entrys. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-11-15 04:18:17 UTC
Created attachment 72941 [details, diff]
Fixes the use_localtime option

Reporter, please add this patch to the ebuild and test with the option
use_localtime=YES in your config.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-11-15 06:34:07 UTC
Marking as test-request
Comment 3 Martin Gramatke 2005-11-16 11:38:05 UTC
Hello Roy, 
 
I applied the patch: 
----------------- 
->>> Unpacking vsftpd-2.0.3.tar.gz to /var/tmp/portage/vsftpd-2.0.3-r2/work 
 ^[[32;01m*^[[0m Applying vsftpd-2.0.3-gentoo.patch ... 
^[[A^[[77C  ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m 
 ^[[32;01m*^[[0m Applying vsftpd-2.0.1-use_localtime.patch ... 
^[[A^[[77C  ^[[34;01m[ ^[[32;01mok^[[34;01m ]^[[0m 
>>> Source unpacked. 
----------------- 
 
But same result, I still get "mixed" times in the vsftpd logfile: 
----------------- 
Wed Nov 16 20:24:42 2005 [pid 22853] CONNECT: Client "127.0.0.1" 
Wed Nov 16 19:24:42 2005 [pid 22853] [anonymous] FAIL LOGIN: Client "127.0.0.1" 
Wed Nov 16 19:24:49 2005 [pid 22853] [ftp] OK LOGIN: Client "127.0.0.1", anon 
password "password" 
----------------- 
 
Anyway thank you for the fast response. 
 
Maybe I should note, that I met people in IRC who use vsftp but get correct 
time logs. 
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-11-16 13:20:43 UTC
Are you running vsftpd in a chroot?
Comment 5 Martin Gramatke 2005-11-19 08:33:13 UTC
I start vsftpd in the default runlevel and here is my /etc/vsftpd/vsftpd.conf: 
 
# Standalone mode 
listen=YES 
max_clients=200 
max_per_ip=5 
# Access rights 
anonymous_enable=YES 
local_enable=NO 
write_enable=YES 
anon_upload_enable=YES 
anon_mkdir_write_enable=YES 
anon_other_write_enable=YES 
# Security 
anon_umask=0000 
#anon_world_readable_only=YES 
connect_from_port_20=YES 
hide_ids=YES 
pasv_min_port=50000 
pasv_max_port=60000 
anon_root=/home/ftp/anon_root 
secure_email_list_enable=YES 
email_password_file=/etc/vsftpd/vsftpd.email_passwords 
ftpd_banner="Login as 'anonymous' with a valid password. All transfers are 
logged." 
# Features 
use_localtime=YES 
xferlog_enable=YES 
ls_recurse_enable=NO 
ascii_download_enable=NO 
async_abor_enable=YES 
# Performance 
one_process_model=YES 
idle_session_timeout=120 
data_connection_timeout=300 
accept_timeout=60 
connect_timeout=60 
#anon_max_rate=150000 
 
(if you note a security issue, please let me know) 
Comment 6 Roy Marples (RETIRED) gentoo-dev 2006-01-09 23:18:52 UTC
vsftpd-2.0.4 just hit the tree - according to the changelog it has a timezone fix.

You may want to test it out and report back :)