LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-17-2010, 11:10 AM   #1
omprakash28
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Rep: Reputation: 0
Disk Quota Issue (Exceeded but Unable to restrict)


Hi everyone,
I installed Diskquota on CentOS 5.1 machine,
I enabled quota for some user with 1 GB as both hard and soft limits, Grace period is 0.

Every this is working fine if we work from normal user's login say (user1 who is a system user). If he exceeds 1GB its will restrict that saying quota exceeded.

But, If root user copies some 500MB files into his workspace, and change the ownership of those files using following command
chown user1.user1 * ( * is 500 MB files).

Then quota is exceeded and it is showed using
repquota /home
user1 +- 2039960 997020 997020 none 298 0 0
here its showing as some 2GB.

Note: soft limit is 951 MB.

So, my problem is restrict quota from all possible ways, ie even if root does some copying and change permissions, it must tell that disc quota exceeded, I was unable to find solution.

Kindly help me regarding this issue, ThanK U in advance.
 
Old 06-17-2010, 11:29 PM   #2
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, Kali Linux, Raspbian
Posts: 166

Rep: Reputation: 10
You must give quota to root user too. This may resolve your problem.
 
Old 06-18-2010, 01:07 AM   #3
omprakash28
LQ Newbie
 
Registered: Jun 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kaushalpatel1982 View Post
You must give quota to root user too. This may resolve your problem.
Thanks for your reply,

We must not restirct 'root' because root has capability of taking backups and installing new libraries and etc., we must be able to do some thing like while changing ownership , if it exceeds that corresponding user's quota it has to warn.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quota exceeded on CentOS 5.2 when creating OpenVZ container eager Linux - Software 1 03-25-2009 01:19 PM
Dedicated server exceeded disk space at 4.8GB the182guy Linux - General 4 01-09-2009 07:45 AM
Disk quota exceeded twantrd Linux - General 2 03-28-2007 01:34 PM
mail quota-exceeded users Ammad Linux - Software 1 12-09-2006 03:26 PM
quota exceeded problem sawoy Linux - General 0 11-15-2004 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration