Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now