Solved

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

Posted on 2002-06-18
4
356 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_
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

840 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