LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-09-2004, 01:27 AM   #1
ulysses
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
Question Proftpd Ratio Config


I am trying to set up an ftp server on my slackware box using proftpd. I have edited the config file to my specifications, which at this point are real simple, but I am having problems with the mod ratios. This is what a snippet of my config file looks like--
# ratio fileserver
<Anonymous ~ftp>
AnonRequirePassword on
RequireValidShell off
User joe
Group joe
#AuthAliasOnly on

<Directory /home/ftp/>

Ratios on
UserRatio joe 1 0 1 0
#GroupRatio proftpd
SaveRatios on
RatioFile /home/ftp/ratios/ratios
RatioTempFile /home/ftp/ratios/tmpratios
CwdRatioMsg "please Upload"
FileRatioErrMsg "Come on, gimme a lil more.."
ByteRatioErrMsg "bitten off more than you can chew"


</Directory>


# Limit the maximum number of anonymous logins
MaxClients 50
# MaxClientsPerUser 1

# 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 /ftp/full_albums/shares/*>
<Limit READ>
AllowAll
</Limit>

<Limit RETR>
AllowAll
</Limit>

</Directory>

<Directory /home/ftp/ratios/>
<Limit ALL>
Deny ALL
</Limit>
HideNoAccess on
</Directory>

# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory /home/ftp/uploads/*>
<Limit WRITE CWD>
AllowAll
</Limit>

<Limit READ RMD DELE>
DenyAll
</Limit>
</Directory>

</Anonymous>

---------------------------------
I KNOW ITS MESSY!

Basically the problem is that when the user logs in the ratio feature does not seem to be enabled and they can download whatever they want without uploading. Anyone with experience writing a ratio enabled proftpd.config please save me from my mess!
 
Old 04-09-2004, 02:14 AM   #2
ulysses
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
replying to my own post
sometimes asking the question helps you to answer it yourself
i just needed to put the "ratios on" line in the global directives and everything now appears peachy
anyone wanna give me some other ideas for making my config file more sane feel free
anyone wanna make fun of my you are also alllowed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Config Proftpd saudoi Solaris / OpenSolaris 15 11-12-2005 12:03 AM
Help with ProFTPd config WNxSquee Linux - Software 5 01-06-2004 06:36 AM
help with proftpd config mconnors Linux - General 5 09-26-2003 03:16 PM
help w/ proftpd config Nefarious Linux - Software 3 04-15-2003 08:50 PM
proftpd config mrozkan Linux - General 3 01-27-2002 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration