Page 1 of 1

ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-05 11:07
by rootnoob
Ich will für die Benutzergruppe default ein Ratio von 1:2 nach bytes einrichten und hab folgendes in meiner config.

Ratios On
GroupRatio default * 1 0 2 0

Leider funktioniert es nicht.

ich bekomme von meinem FTP Client folgende Meldung

[R] 226 Down: 0 Files (0mb) Up: 0 Files (0mb) 10,000,000:1 CR: LEECH

Kann mir einer helfen?

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-05 17:06
by superuser1
Hi...

schau dir nochmal http://www.dynw.com/mod_ratio/ genau an.

:roll:

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-06 13:16
by rootnoob
Danke dir vielmals für den Link. Bei mir funktioniert jetzt alles bestens. Ich hab nur noch das Problem das er die Ratios nicht speichert. Die zählen immer nur pro session. Meine config sieht wie folgt aus:

Ratios On
SaveRatios on
RatioFile "/etc/"
RatioTempFile "/etc/"
UserRatio speed 0 0 3 10000

Woran kann das liegen?

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-06 14:22
by cfreak
RatioFile "/etc/"
da steht File und nicht Dir..

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-07 10:30
by rootnoob
Hab´s wie folgt geändert, leider ohne erfolg. Der zählt die Ratio nur per Session. Woran kann das liegen.

Ratios On
SaveRatios on
RatioFile "/etc/ratiolog.txt"
RatioTempFile "/etc/tempratiolog.txt"
UserRatio speed 0 0 3 10000

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-07 12:46
by alexander newald
Die Dateien exestieren?

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-07 13:12
by rootnoob
Nein. Er legt Sie nicht an.

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-07 14:19
by willi
Das File musst du wohl erst noch anlegen und die Daten reinschreiben.

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-07 14:59
by rootnoob
Was soll ich in die Files reinschreiben. Keine Ahnung wie so ein Datensatz aussehen muss.

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-07 15:30
by superuser1
Hi...

RTFM!
NOTES:

SaveRatios, RatioFile, RatioTempFile:

In order to have SaveRatios working properly, you must point
RatioFile and RatioTempFile to files that are read/writable for all
users that you wish to have ratios saved. If there is a problem
accessing the files, ProFTPD will revert back to the old per session
ratio method (u/l d/l stats will be forgotten on disconnect).

touch and chmod both files to allow r/w from all users whos ratios
will be saved. Enable ratios, users are added to the ratios file as
they log in and stat tracking begins.

If you are using DefaultRoot along with this command, the Ratio files
will need to be stored within the Root directory. One easy way is to
create a sub-directory off of DefaultRoot that is rwx by all users
and then restrict ALL access to these directorys within ProFTPD...

<Directory /workdir>
<Limit ALL>
Deny ALL
</Limit>
HideNoAccess
</Directory>
:roll:

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-12 15:21
by willi
RTFM
was bedeutet das eigentlich?

Re: ProFTPD hat einer Erfahrung wie man eine Ratio einstellt?

Posted: 2005-01-12 16:10
by metrax