www.ProFTPD.de
13. März 2007, 19:55:33 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
  Übersicht Hilfe Suche Login Registrieren  
  Zeige Beiträge
Seiten: [1]
1  ProFTPD / ProFTPD - Deutsch / Re: Zeitstempel bei hochgeladenen Dateien falsch am: 10. November 2006, 15:59:04
Hallo VolGas,

vielen Dank für Deine ausführliche Antwort. Damit bin ich doch schon ein ganzes Stück weiter...

Aber noch eine kleine Nachfrage:
Wenn ich Dich richtig verstanden habe, muß der MDTM-Befehl ja auch von FTP-Server angeboten/unterstützt werden.
Ist dies bei ProFTPD standardmäßig der Fall, oder muß das explizit aktiviert werden?

Nochmals Danke + viele Grüße,

polonius
2  ProFTPD / ProFTPD - Deutsch / Zeitstempel bei hochgeladenen Dateien falsch am: 10. November 2006, 12:24:06
Hallo,

mir ist aufgefallen, dass alle hochgeladenen Dateien und Verzeichnisse nicht mehr den ursprünglichen Zeitstempel tragen, sondern mit der aktuellen Zeit (zum Zeitpunkt des Hochladens) modifiziert werden.

Beispiel:

Eine Datei hat unter WinXP das Zeitattribut 'Geändert am': 26.10.2006. Nach dem Hochladen auf den FTP Server ist der Zeitstempel auf das aktuelle Datum geändert worden.

Im Prinzip wäre mir das egal, wenn die Datei einen neuen timestamp bekommt, aber ich möchte zwei Verzeichnisse synchronisieren und die zu synchronisierenden Dateien/Verzeichnisse sollen anhand des Datums erkannt werden. Und dafür ist es notwendig, dass der FTP-Server die ursprünglichen Zeitstempel der Dateien genau übernimmt. Ansonsten funktioniert das ganze ja nicht...

Das Problem habe ich schon mit verschiedenen FTP-Clients (FileZilla, PSftp Pro, psftp, CoreFTP, etc.) von einem Windows XP Pro Rechner aus reproduzieren können. Daher gehe ich davon aus, dass das Problem bei den Servereinstellungen liegt.  Mit SSh Secure File Transfer und dem gleichen Benutzer tritt das Problem übrigens nicht auf - aber nun gut, ssh ist auch ne andere Geschichte als FTP...
Bei dem PSftp Pro Client funktioniert eine automatische Synchronisation z.B. nur, wenn man explizit MDTM in den Ooptionen des Programms deaktiviert. Ansonsten wird die Synchronisation mit Fehlermeldung abgebrochen:


Code:
"Nr","SYNC_ID","Message","DateTime"
"0","2","Verbindung wird hergestellt. Server: lagerschuppen.dyndns.org, Port: 21","10.11.2006 11:34:28"
"1","2","220 ProFTPD 1.2.10 Server (Debian) [192.168.1.2]","10.11.2006 11:34:38"
"2","2","USER polonius","10.11.2006 11:34:38"
"3","2","331 Password required for polonius.","10.11.2006 11:34:38"
"4","2","Passwort wird gesendet","10.11.2006 11:34:38"
"5","2","230 User polonius logged in.","10.11.2006 11:34:38"
"6","2","FEAT","10.11.2006 11:34:38"
"7","2","211-Features:","10.11.2006 11:34:38"
"8","2","211-MDTM","10.11.2006 11:34:38"
"9","2","211-REST STREAM","10.11.2006 11:34:38"
"10","2","211-SIZE","10.11.2006 11:34:38"
"11","2","211-AUTH TLS","10.11.2006 11:34:38"
"12","2","211-PBSZ","10.11.2006 11:34:38"
"13","2","211-PROT","10.11.2006 11:34:38"
"14","2","211 End","10.11.2006 11:34:38"
"15","2","Die Synchronisierung wurde abgebrochen. Bitte MDTM Optionen prüfen","10.11.2006 11:34:38"
"16","2","Synchronisierung beendet.","10.11.2006 11:34:38"


Ich benutze ProFTPD 1.2.10 auf einem Debian 3.1 Sarge Sytem. Hier die ProFTPD Conf:

Code:
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#

ServerName ******************
ServerType standalone
DeferWelcome off

#UseReverseDNS off
#IdentLookups off

debugLevel 6
ServerLog /var/log/proftpd.debug.log

#MultilineRFC2228 on
DefaultServer on
ShowSymlinks on

TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                "-l"

DenyFilter \*.*/

DefaultRoot ~

#AllowForeignAddress on

PassivePorts 50000 50500

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off

# Uncomment this if you would use TLS module:
TLSEngine on

# Uncomment this if you would use quota module:
#Quotas on

# Uncomment this if you would use ratio module:
#Ratios on

# Port 21 is the standard FTP port.
Port 21

#TimesGMT on

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User nobody
Group nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022  022
# Normally, we want files to be overwriteable.
AllowOverwrite on

# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default.
#DelayEngine off

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User ftp
#   Group nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser on ftp
#   DirFakeGroup on ftp
#
#   RequireValidShell off
#
#   # Limit the maximum number of anonymous logins
#   MaxClients 10
#
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
#   DisplayLogin welcome.msg
#   DisplayFirstChdir .message
#
#   # Limit WRITE everywhere in the anonymous chroot
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
#
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask 022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
#
# </Anonymous>

#TLS
<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log//proftpd_tls.log
TLSProtocol TLSv1
TLSRequired off
TLSRSACertificateFile /usr/local/etc/ftpcert/host.cert
TLSRSACertificateKeyFile /usr/local/etc/ftpcert/host.key
</IfModule>


Ich hab bis jetzt auch schon einige Zeit mit Recherche im Internet zu diesem Problem verbracht. Allerdings nicht wirklich fündig geworden...

Vielleicht weiß hier ja jemand Rat?!

Viele Grüße,
polonius
3  ProFTPD / ProFTPD - Deutsch / Re: Keine Verzeichnisse bei TLS am: 25. Oktober 2006, 21:58:22
DSL-Router hängt dazwischen. FTP wird per NAT auf den Server weitergeleitet.

Aber was meinst Du mit HighPorts. Ich dachte für FTP reicht ein Port... Huch

Grüße,
polonius
4  ProFTPD / ProFTPD - Deutsch / Re: Keine Verzeichnisse bei TLS am: 25. Oktober 2006, 11:27:33
Hallo zusammen,

ich hab dasselbe Problem.

Hab proftpd auch mal im debug-Modus gestartet. Allerdings werd ich aus dem Logfile auch nicht besonders schlau.

Code:
Oct 25 11:14:04 lagerschuppen proftpd[1275] localhost.localdomain (194.95.69.146[194.95.69.146]): performing ident lookup
Oct 25 11:14:14  ident connection failed: Interrupted system call
Oct 25 11:14:14  ident lookup returned 'UNKNOWN'
Oct 25 11:14:14  connected - local  : 192.168.1.2:21
Oct 25 11:14:14  connected - remote : 194.95.69.146:42804
Oct 25 11:14:14  FTP session opened.
Oct 25 11:14:14  dispatching PRE_CMD command 'AUTH TLS' to mod_rewrite
Oct 25 11:14:14  dispatching PRE_CMD command 'AUTH TLS' to mod_tls
Oct 25 11:14:14  dispatching PRE_CMD command 'AUTH TLS' to mod_core
Oct 25 11:14:14  dispatching PRE_CMD command 'AUTH TLS' to mod_core
Oct 25 11:14:14  dispatching CMD command 'AUTH TLS' to mod_tls
Oct 25 11:14:15  dispatching LOG_CMD command 'AUTH TLS' to mod_log
Oct 25 11:14:16  dispatching PRE_CMD command 'USER polonius' to mod_rewrite
Oct 25 11:14:16  dispatching PRE_CMD command 'USER polonius' to mod_tls
Oct 25 11:14:16  dispatching PRE_CMD command 'USER polonius' to mod_core
Oct 25 11:14:16  dispatching PRE_CMD command 'USER polonius' to mod_core
Oct 25 11:14:16  dispatching PRE_CMD command 'USER polonius' to mod_delay
Oct 25 11:14:16  dispatching PRE_CMD command 'USER polonius' to mod_auth
Oct 25 11:14:16  dispatching auth request "endpwent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "endpwent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "endpwent" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "endgrent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "endgrent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "endgrent" to module mod_auth_unix
Oct 25 11:14:16  dispatching CMD command 'USER polonius' to mod_ratio
Oct 25 11:14:16  dispatching CMD command 'USER polonius' to mod_auth
Oct 25 11:14:16  dispatching auth request "getgroups" to module mod_radius
Oct 25 11:14:16  dispatching auth request "getgroups" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "getgroups" to module mod_auth_unix
Oct 25 11:14:16  dispatching POST_CMD command 'USER polonius' to mod_delay
Oct 25 11:14:16  mod_delay/0.4: selecting median interval from 1 value
Oct 25 11:14:16  dispatching LOG_CMD command 'USER polonius' to mod_log
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_rewrite
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_tls
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_core
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_wrap
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_radius
Oct 25 11:14:16  dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
Oct 25 11:14:16  dispatching auth request "endpwent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "endpwent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "endpwent" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "endgrent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "endgrent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "endgrent" to module mod_auth_unix
Oct 25 11:14:16  dispatching CMD command 'PASS (hidden)' to mod_auth
Oct 25 11:14:16  dispatching auth request "getgroups" to module mod_radius
Oct 25 11:14:16  dispatching auth request "getgroups" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "getgroups" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "getpwnam" to module mod_radius
Oct 25 11:14:16  dispatching auth request "getpwnam" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "getpwnam" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "gid_name" to module mod_radius
Oct 25 11:14:16  dispatching auth request "gid_name" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "gid_name" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "auth" to module mod_radius
Oct 25 11:14:16  dispatching auth request "auth" to module mod_tls
Oct 25 11:14:16  dispatching auth request "auth" to module mod_auth_pam
Oct 25 11:14:16  dispatching auth request "setgrent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "setgrent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "setgrent" to module mod_auth_unix
Oct 25 11:14:16 
Oct 25 11:14:16  Config for Debian:
Oct 25 11:14:16  DeferWelcome
Oct 25 11:14:16  DebugLevel
Oct 25 11:14:16  ServerLog
Oct 25 11:14:16  DefaultServer
Oct 25 11:14:16  ShowSymlinks
Oct 25 11:14:16  TimeoutNoTransfer
Oct 25 11:14:16  TimeoutStalled
Oct 25 11:14:16  TimeoutIdle
Oct 25 11:14:16  DisplayLogin
Oct 25 11:14:16  DisplayFirstChdir
Oct 25 11:14:16  ListOptions
Oct 25 11:14:16  DenyFilter
Oct 25 11:14:16  DefaultRoot
Oct 25 11:14:16  TLSEngine
Oct 25 11:14:16  UserID
Oct 25 11:14:16  UserName
Oct 25 11:14:16  GroupID
Oct 25 11:14:16  GroupName
Oct 25 11:14:16  Umask
Oct 25 11:14:16  DirUmask
Oct 25 11:14:16  AllowOverwrite
Oct 25 11:14:16  TLSEngine
Oct 25 11:14:16  TLSLog
Oct 25 11:14:16  TLSRequired
Oct 25 11:14:16  TLSRSACertificateFile
Oct 25 11:14:16  TLSRSACertificateKeyFile
Oct 25 11:14:16  CURRENT-CLIENTS
Oct 25 11:14:16  USER
Oct 25 11:14:16  USER polonius: Login successful.
Oct 25 11:14:16  opening TransferLog '/var/log/xferlog'
Oct 25 11:14:16  dispatching auth request "getpwnam" to module mod_radius
Oct 25 11:14:16  dispatching auth request "getpwnam" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "getpwnam" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "setpwent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "setpwent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "setpwent" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "setgrent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "setgrent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "setgrent" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "getpwent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "getpwent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "getpwent" to module mod_auth_unix
Oct 25 11:14:16  dispatching auth request "getgrent" to module mod_radius
Oct 25 11:14:16  dispatching auth request "getgrent" to module mod_auth_file
Oct 25 11:14:16  dispatching auth request "getgrent" to module mod_auth_unix
Oct 25 11:14:16  Preparing to chroot() the environment, path = '/home/polonius'
Oct 25 11:14:16  Environment successfully chroot()ed.
Oct 25 11:14:16  in dir_check_full(): path = '/', fullpath = '/home/polonius/'.
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_cap
Oct 25 11:14:16  mod_cap/1.0: capabilities '= cap_net_bind_service+ep'
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_ifsession
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_readme
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_delay
Oct 25 11:14:16  mod_delay/0.4: selecting median interval from 1 value
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_radius
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_tls
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_ratio
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_quotatab
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_log
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_ls
Oct 25 11:14:16  dispatching POST_CMD command 'PASS (hidden)' to mod_auth
Oct 25 11:14:16  dispatching LOG_CMD command 'PASS (hidden)' to mod_log
Oct 25 11:14:16  dispatching LOG_CMD command 'PASS (hidden)' to mod_ratio
Oct 25 11:14:17  dispatching PRE_CMD command 'SYST' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'SYST' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'SYST' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'SYST' to mod_core
Oct 25 11:14:17  dispatching CMD command 'SYST' to mod_core
Oct 25 11:14:17  dispatching LOG_CMD command 'SYST' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'FEAT' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'FEAT' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'FEAT' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'FEAT' to mod_core
Oct 25 11:14:17  dispatching CMD command 'FEAT' to mod_core
Oct 25 11:14:17  dispatching LOG_CMD command 'FEAT' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'PBSZ 0' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'PBSZ 0' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'PBSZ 0' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'PBSZ 0' to mod_core
Oct 25 11:14:17  dispatching CMD command 'PBSZ 0' to mod_tls
Oct 25 11:14:17  dispatching LOG_CMD command 'PBSZ 0' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'PROT P' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'PROT P' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'PROT P' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'PROT P' to mod_core
Oct 25 11:14:17  dispatching CMD command 'PROT P' to mod_tls
Oct 25 11:14:17  dispatching POST_CMD command 'PROT P' to mod_xfer
Oct 25 11:14:17  dispatching LOG_CMD command 'PROT P' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'PWD' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'PWD' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'PWD' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'PWD' to mod_core
Oct 25 11:14:17  dispatching CMD command 'PWD' to mod_core
Oct 25 11:14:17  in dir_check_full(): path = '/', fullpath = '/home/polonius/'.
Oct 25 11:14:17  dispatching LOG_CMD command 'PWD' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'TYPE A' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'TYPE A' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'TYPE A' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'TYPE A' to mod_core
Oct 25 11:14:17  dispatching CMD command 'TYPE A' to mod_xfer
Oct 25 11:14:17  dispatching LOG_CMD command 'TYPE A' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'PASV' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'PASV' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'PASV' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'PASV' to mod_core
Oct 25 11:14:17  dispatching CMD command 'PASV' to mod_core
Oct 25 11:14:17  in dir_check_full(): path = '/', fullpath = '/home/polonius/'.
Oct 25 11:14:17  Entering Passive Mode (192,168,1,2,128,17).
Oct 25 11:14:17  dispatching LOG_CMD command 'PASV' to mod_log
Oct 25 11:14:17  dispatching PRE_CMD command 'LIST' to mod_rewrite
Oct 25 11:14:17  dispatching PRE_CMD command 'LIST' to mod_tls
Oct 25 11:14:17  dispatching PRE_CMD command 'LIST' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'LIST' to mod_core
Oct 25 11:14:17  dispatching PRE_CMD command 'LIST' to mod_ratio
Oct 25 11:14:17  dispatching CMD command 'LIST' to mod_ls




Hat jemand von euch eine Idee?

Viele Grüße,
polonius
Seiten: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.075 Sekunden mit 16 Zugriffen.