Solved

RH7.2 + glftpd. Way to control the amount a user uploads?

Posted on 2002-06-18
4
364 Views
Last Modified: 2007-12-19
Hi
I set up a Linux RedHat box some time ago to function as  a server for my own use. That went fine (kinda...). Now I've got a couple of friends that use it allso. I use the glftpd ftp software and have set up accounts for them there with their own home catalog (/usr/www/html/users/X).

Now I'd like to limit the amount of data they can store in their homedir, say to 50 megs. I've searched like mad through the glftpd docs and there doesn't seem to be any way of fixing it via that software.

I've allso looked at disk quotas but that wouldn't work out to good. An example:
I have the users Bob, BillyBob and Anne. They each have a separate homedir and should be limited too having only 50 megs in them. If I were to use disk quotas I'd have to set the limit on the "user" that glftpd uses on the system ie "ftp". Then what if Bob goes on a frenzy and uploads 50 megs the first day. Then Anne and BillyBob can't upload any more since Bob has allready filled the quota.

Does anyone of you know how I could go about fixing this? I would prefer to keep the set up I have now with RH7.2 and glftpd. Oh, and I run it with the bash only, no gui to save resources. (and it's more fun ;)  )

Allso note that I'm a newb when it comes to Linux. I can use the basic commands in the bash and I've installed Apache etc with make/install by following guides. So try to keep it as simple as possible.

Robert Örneteg - Sweden
0
Comment
Question by:Robert_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
raidos earned 200 total points
ID: 7092465
i would suggest that you use a different ftpd than glftpd, for instance proftpd or wu-ftpd, and add the users as regular users on your system just disable login through shell login then everybody has their own rights on their own files and you can let them have a ~/public_html/ folder that is accessable like this, "yourwebsite.com/~username" with little or no tweaking of the httpd.conf...and disk quotas would be usable...

Regards
//raidos
0
 
LVL 1

Author Comment

by:Robert_
ID: 7092657
I figured you'd say that... I tried using proftpd before but I must have screwd something up cause it malfunctioned. I'll try it again though. Think it would be possible to install it along side glftpd for a while so I can get it up properly so my users don't get mad at me? I'll set it to listen to another port of course.
0
 
LVL 3

Expert Comment

by:raidos
ID: 7095360
sure, you can run proftpd on any port you want afaik...

hope you get it working...

Regards
//raidos - Sundsvall, Sweden
0
 
LVL 1

Author Comment

by:Robert_
ID: 7095816
Heh, nice to see another swede here ;)
I guess I'll have to accept that as the answer.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question