Sfeni
13.06.02, 13:06
1. Wie kann ich mit proftpd den speicherplatz eines Users begrenzen???
2. Wie kann ich Schreibrechte erteilen? Ich habe das zwar reingeschrieben, aber es funzt nicht. Ich kann nichts überschreiben und auch keine neuen Dateien erstellen.
Der Besitzer der ganzen Dateien ist. nobody:nogroup
Rechte 644 (Auch bei 777 kann ich nichts schreiben)
Mein config-Datei:
ServerName "ProFTPD Server"
ServerIdent on "FTP Server ready."
ServerType standalone
DefaultServer on
Port 21
Umask 022
<Global>
SQLConnectInfo proftpd@localhost:3306 root linux
SQLAuthTypes Backend
DefaultRoot ~
TransferLog /www/logs/ftp_log
ShowDotFiles on
SQLUserInfo users userid passwd uid gid homedir NULL
SQLUserWhereClause "active='1'"
RequireValidShell off
SQLGroupInfo groups groupname gid members
SQLAuthenticate users* groups*
SQLNamedQuery getcount SELECT "count from users where userid='%u'"
SQLShowInfo PASS "230" "You've logged on %{getcount} times"
SQLNamedQuery gettraffic SELECT "traffic from users where userid='%u'"
SQLShowInfo PASS "230" "Youre ftp-traffic: %{gettraffic} bytes"
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "count=count+1 WHERE userid='%u'" users
SQLLog RETR,STOR updatetraffic
SQLNamedQuery updatetraffic UPDATE "traffic=traffic+%b WHERE userid='%u'" users
</Global>
MaxInstances 30
MaxClientsPerHost 3 "3 Sessions per IP only"
MaxHostsPerUser 3 "Sorry, the maximum number of hosts (%m) for this user already connected."
User nobody
Group nogroup
<Directory /*>
AllowOverwrite on
<Limit WRITE>
AllowAll
</Limit>
</Directory>
2. Wie kann ich Schreibrechte erteilen? Ich habe das zwar reingeschrieben, aber es funzt nicht. Ich kann nichts überschreiben und auch keine neuen Dateien erstellen.
Der Besitzer der ganzen Dateien ist. nobody:nogroup
Rechte 644 (Auch bei 777 kann ich nichts schreiben)
Mein config-Datei:
ServerName "ProFTPD Server"
ServerIdent on "FTP Server ready."
ServerType standalone
DefaultServer on
Port 21
Umask 022
<Global>
SQLConnectInfo proftpd@localhost:3306 root linux
SQLAuthTypes Backend
DefaultRoot ~
TransferLog /www/logs/ftp_log
ShowDotFiles on
SQLUserInfo users userid passwd uid gid homedir NULL
SQLUserWhereClause "active='1'"
RequireValidShell off
SQLGroupInfo groups groupname gid members
SQLAuthenticate users* groups*
SQLNamedQuery getcount SELECT "count from users where userid='%u'"
SQLShowInfo PASS "230" "You've logged on %{getcount} times"
SQLNamedQuery gettraffic SELECT "traffic from users where userid='%u'"
SQLShowInfo PASS "230" "Youre ftp-traffic: %{gettraffic} bytes"
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE "count=count+1 WHERE userid='%u'" users
SQLLog RETR,STOR updatetraffic
SQLNamedQuery updatetraffic UPDATE "traffic=traffic+%b WHERE userid='%u'" users
</Global>
MaxInstances 30
MaxClientsPerHost 3 "3 Sessions per IP only"
MaxHostsPerUser 3 "Sorry, the maximum number of hosts (%m) for this user already connected."
User nobody
Group nogroup
<Directory /*>
AllowOverwrite on
<Limit WRITE>
AllowAll
</Limit>
</Directory>