[96929] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Limiting disk space

daemon@ATHENA.MIT.EDU (dsb3)
Fri Oct 30 08:29:57 1998

Date: Fri, 30 Oct 1998 07:26:56 -0600 (CST)
From: dsb3 <dsb3@earthlink.net>
To: redhat-list@redhat.com
In-Reply-To: <199810301010.PAA00742@vidya.aptech.ac.in>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Fri, 30 Oct 1998, Vineeta wrote:

>  I want to limit disk space for a single user to say,10 Mb on my server
>since he frequently needs to upload & download data.
>I had posted this question earlier and got answers all relating to 
>quotas.I don't want to make a quota filesystem.Isn't there any other way
>to restrict space he can use?Maybe a script will help.
>

Unless you set up quotas it'll be hard to prevent him from going over that
limit.  A cheap and tacky alternative would be to run a script against his
home directory every <n> minutes (from cron perhaps) that checks the disk
usage and if needs be starts randomly deleting files.

Not that I'd suggest that - much better to tell a user they don't have
space to save a file than to unexpectedly remove files when he's not
informed he's over quota.


why don't you want to set up the quota support?   


-dave

--

   |     oOOooO           /  
 --|    oOobodoO        /   dsb3@earthlink.net
 --|     ooOoOo       /    
   |       II       /     Kernel Panic: /dev/brain is on fire.
   |       II     /      MD5: 13aa1b8724ce1885cd9e7cad9b2eb9ba 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post