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.
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.
Marking as test-request
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.
Are you running vsftpd in a chroot?
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)
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 :)