Solved

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

Posted on 2002-06-18
4
350 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

778 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