Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 117
pvcreate issue 5 97
RPM creation 6 48
CentOs root password/fsck issue 7 60
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…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

734 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