Hallo,
sorry das ich euch schon ein zweites mal innerhalb einer Woche störe
Mein erstes Problem hat sich glücklicherweise dank Volgas gelöst, nun habe ich aber folgendes Problem, nachdem ich die neue Version compiliert habe, wollte ich einfach meine alte "config" übernehmen.
siehe:
This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
serverName "xxxxsServer"
ServerType standalone
Defaultserver on
#Serveradmin admin@xxxxxxxxx.com
#SQLLOGFilE /var/log/proftpd.sql
RequireValidShell off
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# 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
User wwwrun
Group www
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# Beschräungen auf Upload fuer Fotografen
<Directory /xyz/html/photos/upload/*/*>
<Limit ALL>
AllowUser xxx
AllowUser xxy
# DenyAll
# </Limit>
# <Limit APPE STOR STOU CDUP CWD XCWD XCUP LIST>
AllowAll
</Limit>
</Directory>
# Beschräung, dass Fotografen in upload/ direkt nichts uppen duerfen
<Directory /xyz/html/photos/upload/*>
<Limit ALL>
AllowUser xxx
AllowUser xxy
AllowAll
# DenyAll
</Limit>
</Directory>
# Konfiguration
#neu
#AuthOrder mod_sql.c
SQLAuthTypes Plaintext
SQLAuthenticate users*
SQLConnectInfo proftpd@213.13.213.123 proftpd passwort
SQLDefaultGID 8
SQLDefaultUID 30
#MaxClientsPerHost 2 "Nicht mehr als %m Verbindungen"
MaxClients 10 "Leider sind schon %m Clients verbunden"
MaxLoginAttempts 3
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "count=count+1,letzer_zugriff=now() WHERE userid='%u'" users
# xfer Log in mysql
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
Das Problem ist ich habe den FTP nicht eingerichtet, das war mein Vorgänger, mit der alten Version funktioniert alles einwandfrei :/
Wenn ich jedoch die neue Version von proftpd nutze, bekomme ich Probleme mit der Berechtigung. Mir scheint es so als ob der User nicht wirklich "wwwrun" ist, obwohl der Dienst unter wwwrun im Top und ps auftaucht? Meine Verzeichnisse und Dateien sind alle wwwrun:www und der der ftp soll quasi derselbe User sein.
Wenn ich auf meinem FTP bin, komme ich dann nur noch in Unterverzeichnise die mind. drwxr-xr-x sind.
Auch Dateien lassen sich lesen, nur nicht alle, da manche Ordner z.b. nur
drwxr-x--- 3 wwwrun www 4096 2006-02-01 18:23 mediendaten
sind.
Normal müsste das doch weiterhin so funktionieren, im Debug Modus habe ich nur was von SQLAuthMode entdeckt und Authorder etc.
Hier das Log beim starten:
- dispatching event 'core.module-load' to mod_sql_mysql
- dispatching event 'core.module-load' to mod_sql_mysql
- dispatching event 'core.preparse' to mod_sql
- parsing '/usr/local/proftpd/1.3.0/etc/proftpd.conf' configuration
- FS: using system open()
- FS: using system read()
- dispatching directive 'ServerName' to module mod_core
- dispatching directive 'ServerType' to module mod_core
- dispatching directive 'DefaultServer' to module mod_core
- dispatching directive 'RequireValidShell' to module mod_auth
- dispatching directive 'Port' to module mod_core
- dispatching directive 'Umask' to module mod_core
- FS: using system read()
- dispatching directive 'MaxInstances' to module mod_core
- dispatching directive 'User' to module mod_core
- dispatching auth request "getpwnam" to module mod_sql
- dispatching auth request "getpwnam" to module mod_auth_file
- dispatching auth request "getpwnam" to module mod_auth_unix
- retrieved UID 1001 for user 'wwwrun'
- dispatching directive 'Group' to module mod_core
- dispatching auth request "getgrnam" to module mod_sql
- dispatching auth request "getgrnam" to module mod_auth_file
- dispatching auth request "getgrnam" to module mod_auth_unix
- retrieved GID 1001 for group 'www'
- dispatching directive 'DefaultRoot' to module mod_auth
- dispatching directive '<Directory>' to module mod_core
- <Directory />: deferring resolution of path
- dispatching directive 'AllowOverwrite' to module mod_xfer
- dispatching directive '</Directory>' to module mod_core
- dispatching directive '<Directory>' to module mod_core
- <Directory /partyfans/html/photos/upload/*/*>: deferring resolution of path
- dispatching directive '<Limit>' to module mod_core
- dispatching directive 'AllowUser' to module mod_core
- dispatching directive 'AllowUser' to module mod_core
- dispatching directive 'AllowAll' to module mod_core
- dispatching directive '</Limit>' to module mod_core
- dispatching directive '</Directory>' to module mod_core
- dispatching directive '<Directory>' to module mod_core
- <Directory /partyfans/html/photos/upload/*>: deferring resolution of path
- dispatching directive '<Limit>' to module mod_core
- dispatching directive 'AllowUser' to module mod_core
- dispatching directive 'AllowUser' to module mod_core
- dispatching directive 'AllowAll' to module mod_core
- dispatching directive '</Limit>' to module mod_core
- dispatching directive '</Directory>' to module mod_core
- dispatching directive 'SQLAuthTypes' to module mod_sql
- dispatching directive 'SQLAuthenticate' to module mod_sql
- SQLAuthenticate: use of * in SQLAuthenticate has been deprecated. Use AuthOrder for setting authoritativeness
- dispatching directive 'SQLConnectInfo' to module mod_sql
- dispatching directive 'SQLDefaultGID' to module mod_sql
- FS: using system read()
- dispatching directive 'SQLDefaultUID' to module mod_sql
- dispatching directive 'MaxClients' to module mod_auth
- dispatching directive 'MaxLoginAttempts' to module mod_auth
- dispatching directive 'SQLLog' to module mod_sql
- dispatching directive 'SQLNamedQuery' to module mod_sql
- dispatching directive 'SQLLog' to module mod_sql
- dispatching directive 'SQLNamedQuery' to module mod_sql
- dispatching directive 'SQLLog' to module mod_sql
- dispatching directive 'SQLNamedQuery' to module mod_sql
- FS: using system read()
- FS: using system close()
- attempting to resolve 'loveparade' to IPv4 address via DNS
- resolved 'loveparade' to IPv4 address 127.0.0.1
loveparade -
loveparade - Config for XXXXXXXXXXXXXXXXXXX:
loveparade - /xyz/html/photos/upload/*
loveparade - Limit
loveparade - AllowUser
loveparade - AllowUser
loveparade - AllowAll
loveparade - RequireValidShell
loveparade - Umask
loveparade - SQLAuthTypes
loveparade - SQLAuthenticate
loveparade - SQLConnectInfo
loveparade - SQLDefaultGID
loveparade - SQLDefaultUID
loveparade - MaxClients
loveparade - SQLLog_PASS
loveparade - SQLNamedQuery_updatecount
loveparade - SQLLog_RETR
loveparade - SQLLog_STOR
loveparade - SQLNamedQuery_transfer1
loveparade - SQLLog_ERR_RETR
loveparade - SQLLog_ERR_STOR
loveparade - SQLNamedQuery_transfer2
loveparade - /xyz/html/photos/upload/*/*
loveparade - Limit
loveparade - AllowUser
loveparade - AllowUser
loveparade - AllowAll
loveparade - RequireValidShell
loveparade - Umask
loveparade - SQLAuthTypes
loveparade - SQLAuthenticate
loveparade - SQLConnectInfo
loveparade - SQLDefaultGID
loveparade - SQLDefaultUID
loveparade - MaxClients
loveparade - SQLLog_PASS
loveparade - SQLNamedQuery_updatecount
loveparade - SQLLog_RETR
loveparade - SQLLog_STOR
loveparade - SQLNamedQuery_transfer1
loveparade - SQLLog_ERR_RETR
loveparade - SQLLog_ERR_STOR
loveparade - SQLNamedQuery_transfer2
loveparade - /
loveparade - AllowOverwrite
loveparade - RequireValidShell
loveparade - Umask
loveparade - SQLAuthTypes
loveparade - SQLAuthenticate
loveparade - SQLConnectInfo
loveparade - SQLDefaultGID
loveparade - SQLDefaultUID
loveparade - MaxClients
loveparade - SQLLog_PASS
loveparade - SQLNamedQuery_updatecount
loveparade - SQLLog_RETR
loveparade - SQLLog_STOR
loveparade - SQLNamedQuery_transfer1
loveparade - SQLLog_ERR_RETR
loveparade - SQLLog_ERR_STOR
loveparade - SQLNamedQuery_transfer2
loveparade - DefaultServer
loveparade - RequireValidShell
loveparade - Umask
loveparade - UserID
loveparade - UserName
loveparade - GroupID
loveparade - GroupName
loveparade - DefaultRoot
loveparade - SQLAuthTypes
loveparade - SQLAuthenticate
loveparade - SQLConnectInfo
loveparade - SQLDefaultGID
loveparade - SQLDefaultUID
loveparade - MaxClients
loveparade - MaxLoginAttempts
loveparade - SQLLog_PASS
loveparade - SQLNamedQuery_updatecount
loveparade - SQLLog_RETR
loveparade - SQLLog_STOR
loveparade - SQLNamedQuery_transfer1
loveparade - SQLLog_ERR_RETR
loveparade - SQLLog_ERR_STOR
loveparade - SQLNamedQuery_transfer2
loveparade - dispatching event 'core.postparse' to mod_delay
loveparade - ROOT PRIVS at mod_delay.c:292
loveparade - FS: using system open()
loveparade - RELINQUISH PRIVS at mod_delay.c:294
loveparade - FS: using system fstat()
loveparade - mod_delay/0.5: mapping DelayTable '/usr/local/proftpd/1.3.0/var/proftpd/proftpd.delay' into memory
loveparade - mod_delay/0.5: unmapping DelayTable '/usr/local/proftpd/1.3.0/var/proftpd/proftpd.delay' from memory
loveparade - FS: using system close()
loveparade - dispatching auth request "getgroups" to module mod_sql
loveparade - dispatching auth request "getgroups" to module mod_auth_file
loveparade - dispatching auth request "getgroups" to module mod_auth_unix
loveparade - retrieved group ID: 1001
loveparade - setting group ID: 1001
loveparade - SETUP PRIVS at main.c:2897
loveparade - ROOT PRIVS at main.c:1991
loveparade - RELINQUISH PRIVS at main.c:1998
loveparade - ROOT PRIVS at main.c:2346
loveparade - opening scoreboard '/usr/local/proftpd/1.3.0/var/proftpd/proftpd.scoreboard'
loveparade - RELINQUISH PRIVS at main.c:2372
loveparade - dispatching event 'core.startup' to mod_core
loveparade - ROOT PRIVS at inet.c:323
loveparade - RELINQUISH PRIVS at inet.c:381
loveparade - ProFTPD 1.3.0a (stable) (built Thu Nov 30 20:39:48 CET 2006) standalone mode STARTUP
loveparade - ROOT PRIVS at main.c:2209
loveparade - RELINQUISH PRIVS at main.c:2211
loveparade - FS: using system lstat()
Und hier das Log wenn ich in solch einen Ordner möchte:
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching PRE_CMD command 'NOOP' to mod_core
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching PRE_CMD command 'NOOP' to mod_core
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching CMD command 'NOOP' to mod_core
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching POST_CMD command 'NOOP' to mod_sql
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching LOG_CMD command 'NOOP' to mod_sql
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching LOG_CMD command 'NOOP' to mod_log
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching PRE_CMD command 'CWD /html/mediendaten/' to mod_core
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching PRE_CMD command 'CWD /html/mediendaten/' to mod_core
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching CMD command 'CWD /html/mediendaten/' to mod_core
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - in dir_check_full(): path = '/html/mediendaten', fullpath = '/xyz/html/mediendaten'.
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - FS: using system stat()
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - FS: using system stat()
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - FS: using system stat()
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - FS: using system stat()
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - FS: using system chdir()
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching POST_CMD_ERR command 'CWD /html/mediendaten/' to mod_sql
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching LOG_CMD_ERR command 'CWD /html/mediendaten/' to mod_sql
loveparade (p54AA5D03.dip.t-dialin.net[84.170.93.3]) - dispatching LOG_CMD_ERR command 'CWD /html/mediendaten/' to mod_log
Ich habe schon alles mögliche probiert, SQLDefaultGID, SQLDefaultUID auskommentiert, AuthOrder mod_sql.c reingeschrieben etc.
Ich komme leider nicht auf das Kernproblem, war mein proftpd nicht "wirklich" wwwrun gehört :S
Über Hilfe würde ich mich sehr freuen
danke & gruß
Jens