LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-19-2004, 05:45 PM   #1
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Rep: Reputation: 0
User Quotas


I'm running Debian. I can't seem to properly set up user quotas. I will use "edquota username" and I edit the users file. Then when I run repquota I don't get the edited entries.

my fstab:

<file system> <mount point> <type> <options> <dump> <pass>
/dev/hdd1 / ext2 errors=remount-ro 0 1
/dev/hdc1 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/hdd2 /home ext2 defaults,usrquota,grpquota
1 2
/dev/hdd3 /usr ext2 defaults 0 2
/dev/hdc2 /usr/local/apache/htdocs/hdc ext2 defaults 0
2

my repquota results:

*** Report for group quotas on device /dev/hdd2
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
Group used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 109M 0 0 2595 0 0
s**** -- 15108 0 0 1066 0 0
users -- 74036 0 0 3989 0 0
s***** -- 52580 0 0 425 0 0
www -- 40 0 0 10 0 0
m***** -- 20 0 0 5 0 0
mysql -- 20 0 0 5 0 0
n**** -- 3772 0 0 420 0 0
k*** -- 580 0 0 113 0 0
#522 -- 30112 0 0 2621 0 0

Statistics:
Total blocks: 8
Data blocks: 1
Entries: 10
Used average: 10.000000


Can someone please explain to me (in simple terms) , or point me to a good link that will help me out?
 
Old 01-21-2004, 04:24 PM   #2
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Step 1) First you have to issue:
# quotacheck -c /home ; or whatever partition your trying to make a quota for

Step 2)
# quotacheck -vug /home

Step 3) You should be able to start the service now. "quota"

Step 4) When your editing a users quota, use the -u option

edquota -u username
... then write and quit it

Step 5) Check on the quota report
repquota -a
 
Old 01-21-2004, 05:47 PM   #3
Dipdngold
LQ Newbie
 
Registered: Oct 2003
Posts: 14

Original Poster
Rep: Reputation: 0
This is what I get when I enter those commands:

mail:~# quotacheck -c /home
Cannot get exact used space... Results might be inaccurate.

mail:~# quotacheck -vug /home
Cannot get exact used space... Results might be inaccurate.
quotacheck: Scanning /dev/hdd2 [/home] done
quotacheck: Checked 567 directories and 10683 files

repquota -a does not show any changes after I edit the user's quotas.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
User Quotas gsibble Linux - General 4 06-12-2007 08:30 PM
copying user quotas from proto user jomy Linux - Enterprise 0 01-09-2005 02:06 AM
User Quotas humanrig Linux - Hardware 1 03-15-2004 07:24 AM
issues with user quotas.. oeln Linux - General 1 10-15-2003 06:13 PM
User Quotas johnpayback Linux - General 5 08-12-2002 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 PM.

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