LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2003, 08:09 AM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Quota:cannot be set and update


Hi All:

I opend an user account.
Once I update the quota of this account, I cannot see any effect by the command "repquota -a".
If I use the "quotacheck -avugm", the update take effect.
An error message occurs:

Cannot get exact used space... Results might be inaccurate.
quotacheck: Scanning /dev/hda2 [/] done
quotacheck: Checked 724 directories and 12253 files
quotacheck: Scanning /dev/hdc1 [/data1] done
quotacheck: Checked 3 directories and 4 files
quotacheck: Scanning /dev/hdd1 [/data2] done
quotacheck: Checked 2 directories and 1 files


Question 1:
Is it necessary to run the command "quotacheck -avugm" always?
Is it normal to see the error msg "Results might be inaccurate"?

When I log in as the user,
type command "quota".
The error message is:

quota: Can't open quotafile //aquota.user: Permission denied
quota: Can't open quotafile /data1/aquota.user: Permission denied
quota: Can't open quotafile /data2/aquota.user: Permission denied
Disk quotas for user cck (uid 1001): none

Thus, the user cannot check his own quota setting.

Question 2:
What's wrong with my system?

Here is the /etc/fstab for your reference:

# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda2 / ext3 defaults,usrquota 0 2
/dev/hda1 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
/dev/hdc1 /data1 ext3 defaults,usrquota 0 2
/dev/hdd1 /data2 ext3 defaults,usrquota 0 2


The mount point /data1 and /data2 are for general users.

Thanks.
 
Old 10-22-2003, 07:30 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Is it necessary to run the command "quotacheck -avugm" always?
No, only when you need to add or repair user and group quota files.

Is it normal to see the error msg "Results might be inaccurate"?
Yes, because you forced running it on a mounted partition that's not mounted read-only.

quota: Can't open quotafile //aquota.user: Permission denied
quota: Can't open quotafile /data1/aquota.user: Permission denied
quota: Can't open quotafile /data2/aquota.user: Permission denied
What's wrong with my system?


Dunno, but I see you're using new version quota files.
Could you post the permissions on those quota files?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to set quota at /home davidhk Linux - General 2 06-04-2005 10:10 PM
My Quota won't update Qveon Red Hat 1 03-06-2004 02:21 AM
how to set quota awp Slackware 1 04-27-2003 12:58 PM
set user quota size juno Linux - General 2 10-25-2002 03:42 AM
how to set quota, a/c and permission gogo Linux - General 1 10-09-2001 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 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