Als FTP-user: test mit dem pfad Pfad :/home/html/ berechtigung für den Pfad: drwxr-xr-x root root
Befehl: proftp -n d9 : (ich weiß : es werden keine SQL fehlermeldungen geloggt)
rock.homer (192.168.1.20[192.168.1.20]) - dispatching CMD command 'STOR 91.jpg' to mod_xfer
rock.homer (192.168.1.20[192.168.1.20]) - FS: using system open()
rock.homer (192.168.1.20[192.168.1.20]) - unable to open '91.jpg' for writing: Permission denied
rock.homer (192.168.1.20[192.168.1.20]) - dispatching POST_CMD_ERR command 'STOR 91.jpg' to mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching LOG_CMD_ERR command 'STOR 91.jpg' to mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching LOG_CMD_ERR command 'STOR 91.jpg' to mod_log
rock.homer (192.168.1.20[192.168.1.20]) - dispatching LOG_CMD_ERR command 'STOR 91.jpg' to mod_xfer
rock.homer (192.168.1.20[192.168.1.20]) - dispatching PRE_CMD command 'QUIT' to mod_core
rock.homer (192.168.1.20[192.168.1.20]) - dispatching PRE_CMD command 'QUIT' to mod_core
rock.homer (192.168.1.20[192.168.1.20]) - dispatching PRE_CMD command 'QUIT' to mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching PRE_CMD command 'QUIT' to mod_log
rock.homer (192.168.1.20[192.168.1.20]) - dispatching CMD command 'QUIT' to mod_core
rock.homer (192.168.1.20[192.168.1.20]) - FTP session closed.
proftp.conf -> eintrag:
# von stonki übernommen
SQLLog RETR,STOR transfer1
SQLNamedQuery transfer1 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T',now(), 'c', NULL" xfer_stat
SQLLOG ERR_RETR,ERR_STOR transfer2
SQLNamedQuery transfer2 INSERT "'%u', '%f', '%b', '%h', '%a', '%m', '%T',now(), 'i', NULL" xfer_stat
--> was dazuzu in der Datenbank stand:
username | filename | size | host | ip | aktion | dauer | success | zeit_lokal | ui |
test | - | 0 | 192.168.1.20 | STOR | 192.168.1.20 | 0.0 | 2 | 0000-00-00 00:00:00 | 125
test | - | 0 | 192.168.1.20 | 192.168.1.20 | STOR | 0.0 | 2 | 0000-00-00 00:00:00 | 126
test | - | 0 | 192.168.1.20 | 192.168.1.20 | STOR | 0.0 | 2 | 0000-00-00 00:00:00 | 127
test | - | 0 | 192.168.1.20 | 192.168.1.20 | STOR | 0.0 | 2 | 0000-00-00 00:00:00 | 128
#Warum die Einträge in Zeile 1 und 2 ip und aktion vertauscht sind ist, mit noch unklar.
LOG vom FTp-Clienten:
STATUS:> Connecting to "192.168.1.98" on port 21.
220 wincierz.homelinux.com
STATUS:> Connected. Logging into the server
COMMAND:> USER test
331 Password required for test.
COMMAND:> PASS ****
230 User test logged in.
STATUS:> Login successful
COMMAND:> FEAT
211-Features:
MDTM
REST STREAM
SIZE
211 End
STATUS:> Server supports resume
COMMAND:> PWD
257 "/" is current directory.
COMMAND:> CWD /
250 CWD command successful.
COMMAND:> TYPE A
200 Type set to A
COMMAND:> PORT 192,168,1,20,5,242
200 PORT command successful
COMMAND:> LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
STATUS:> Resolving links
COMMAND:> CWD /mail
550 /mail: No such file or directory
STATUS:> Resolved 1 link into 0 folders and 1 file
STATUS:> Connecting to "192.168.1.98" on port 21.
220 wincierz.homelinux.com
STATUS:> Connected. Logging into the server
COMMAND:> USER test
331 Password required for test.
COMMAND:> PASS ****
230 User test logged in.
STATUS:> Login successful
STATUS:> Server supports resume
COMMAND:> PWD
257 "/" is current directory.
COMMAND:> TYPE A
200 Type set to A
COMMAND:> PORT 192,168,1,20,5,244
200 PORT command successful
COMMAND:> LIST /91.jpg
150 Opening ASCII mode data connection for file list
226 Transfer complete.
STATUS:> Sending: C:\CS\Wallpapers\91.jpg -> /91.jpg
COMMAND:> TYPE I
200 Type set to I
COMMAND:> PORT 192,168,1,20,5,245
200 PORT command successful
COMMAND:> STOR 91.jpg
550 91.jpg: Permission denied
ERROR:> Unable to open file
STATUS:> Connecting to "192.168.1.98" on port 21.
220 wincierz.homelinux.com
STATUS:> Connected. Logging into the server
COMMAND:> USER test
331 Password required for test.
COMMAND:> PASS ****
230 User test logged in.
STATUS:> Login successful
STATUS:> Server supports resume
COMMAND:> PWD
257 "/" is current directory.
STATUS:> Sending: C:\CS\Wallpapers\91.jpg -> /91.jpg
COMMAND:> TYPE I
200 Type set to I
COMMAND:> PORT 192,168,1,20,5,247
200 PORT command successful
COMMAND:> STOR 91.jpg
550 91.jpg: Permission denied
ERROR:> Unable to open file
STATUS:> Connecting to "192.168.1.98" on port 21.
220 wincierz.homelinux.com
STATUS:> Connected. Logging into the server
COMMAND:> USER test
331 Password required for test.
COMMAND:> PASS ****
230 User test logged in.
STATUS:> Login successful
STATUS:> Server supports resume
COMMAND:> PWD
257 "/" is current directory.
STATUS:> Sending: C:\CS\Wallpapers\91.jpg -> /91.jpg
COMMAND:> TYPE I
200 Type set to I
COMMAND:> PORT 192,168,1,20,5,249
200 PORT command successful
COMMAND:> STOR 91.jpg
550 91.jpg: Permission denied
ERROR:> Unable to open file
ERROR:> 550 91.jpg: Permission denied
COMMAND:> QUIT
221 Goodbye.
Das ist bei einem User. wo die Fehlermeldung "
550 Permission denied" kommt.
******************************
Jetzt kommt der log wo es geklappt aber immer noch einige Fehlermeldungen kommen. Habe da die Berechtigung vom Verzeichnis geändert
******************************
Befehl: proftp -n d9
als FTP-user: heavy mit dem Pfad :/home/html/ftp/incoming berechtigung für den Pfad: drwxrwxrwx 2 ftp users
dispatching auth request "gid_name" to module mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "gid_name" to module mod_auth_file
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "gid_name" to module mod_auth_unix
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "uid_name" to module mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - FS: using system lstat()
rock.homer (192.168.1.20[192.168.1.20]) - FS: using system stat()
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "gid_name" to module mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "gid_name" to module mod_auth_file
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "gid_name" to module mod_auth_unix
rock.homer (192.168.1.20[192.168.1.20]) - dispatching auth request "uid_name" to module mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching POST_CMD command 'LIST' to mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching LOG_CMD command 'LIST' to mod_sql
rock.homer (192.168.1.20[192.168.1.20]) - dispatching LOG_CMD command 'LIST' to mod_log
rock.homer (192.168.1.20[192.168.1.20]) - dispatching LOG_CMD command 'LIST' to mod_ls
Was stand in der SQL datenbank:
username | filename | size | host | ip | aktion | dauer success | zeit_lokal | ui
heavy | /home/html/ftp/incoming/91.jpg | 386770 |192.168.1.20 | 192.168.1.20 | STOR | 0.092 | 2 | 0000-00-00 00:00:00 | 133
heavy | /home/html/ftp/incoming/91.jpg | 386770 | 192.168.1.20 | 192.168.1.20 | STOR | 0.096 | 2 | 0000-00-00 00:00:00 | 134
FTP-CLient LOG:
STATUS:> Connecting to "192.168.1.98" on port 21.
220 wincierz.homelinux.com
STATUS:> Connected. Logging into the server
COMMAND:> USER heavy
331 Password required for heavy.
COMMAND:> PASS **********
230 User heavy logged in.
STATUS:> Login successful
COMMAND:> FEAT
211-Features:
MDTM
REST STREAM
SIZE
211 End
STATUS:> Server supports resume
COMMAND:> PWD
257 "/" is current directory.
COMMAND:> CWD /
250 CWD command successful.
COMMAND:> TYPE A
200 Type set to A
COMMAND:> PORT 192,168,1,20,6,18
200 PORT command successful
COMMAND:> LIST
150 Opening ASCII mode data connection for file list
226 Transfer complete.
STATUS:> Connecting to "192.168.1.98" on port 21.
220 wincierz.homelinux.com
STATUS:> Connected. Logging into the server
COMMAND:> USER heavy
331 Password required for heavy.
COMMAND:> PASS **********
230 User heavy logged in.
STATUS:> Login successful
STATUS:> Server supports resume
COMMAND:> PWD
257 "/" is current directory.
COMMAND:> TYPE A
200 Type set to A
COMMAND:> PORT 192,168,1,20,6,20
200 PORT command successful
COMMAND:> LIST /91.jpg
150 Opening ASCII mode data connection for file list
226 Transfer complete.
STATUS:> Sending: C:\CS\Wallpapers\91.jpg -> /91.jpg
COMMAND:> TYPE I
200 Type set to I
COMMAND:> PORT 192,168,1,20,6,21
200 PORT command successful
COMMAND:> STOR 91.jpg
150 Opening BINARY mode data connection for 91.jpg
226 Transfer complete.
COMMAND:> MDTM 20020909145107 /91.jpg
550 20020909145107: No such file or directory
ERROR:> Unable to set file date and time. Server may not support command.
STATUS:> Sent 386.770 bytes.
STATUS:> Transfer time: 00:00:00.080; 4,61 MB/sec
COMMAND:> QUIT
Installierte Module :
rock:/home/html # proftpd -l
Compiled-in modules:
mod_core.c
mod_xfer.c
mod_auth_unix.c
mod_auth_file.c
mod_auth.c
mod_ls.c
mod_log.c
mod_site.c
mod_sql.c
mod_sql_mysql.c
mod_cap.c
Sorry für die ganzen logs aber so habe ich alle infos die ich gegeben kann am besten zusammenfassen können. und ich habe versucht es übersichtlich zu lassen.
Ich hoffe es hilft. Warum mir jemand sagen kann warum ich nicht speichern kann . Ich meine es kann doch nicht sein,dass ich jedesmal die Verzeichnisrechte für jeden ftp-user separat in der Console anpassen muß, oder ist es wirklich so?
desweitern --> ich habe den scoreboardfile gefunden
Gruß
Jürgen