Re: directory quota for root ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My understanding is that quotas are on a filesystem basis...you'd have to 
have some sort of logic built into the code that basically did the 
equivalent of "du" on the directory, to get the current disk usage.

On Fri, 11 Jun 2004, Ed Kim wrote:

> Hey all,
> I have a system with redhat 9 and quotas set up; however, I would like to 
> limit the amount of space that the root user has to write to a certain 
> directory without making the directory a seperate partition.
> Basically, I have a c++ program which needs to be run under root, and which 
> stores data to a certain directory.  The program stores until the directory 
> runs out of space ( previously it was linked to a seperate partition) so 
> this works ok.  But we would like to keep this directory now on the same 
> partition so that when it issues a 'mv' command, it won't have to do so much 
> disk io... ( these are large files -> 3+gb).
> 
> I've attempted to setup a user with a quota, but when the program is 
> executed as root, it ignores the user quota.  I've attempted to create a 
> user with UID = 0 and setup quotas for this user, but it changes root quota 
> as well.
> 
> Any suggestions would be greatly appreciated.
> 
> Thanks in advance.
> 
> Ed
> 
> _________________________________________________________________
> Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
> 
> 
> 

-- 
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org:2000

To be notified of updates to the web site, visit 
http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a 
message to:

site-update-request@xxxxxxxxxxxxxxxxx

with a message of: 

subscribe


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux