LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-15-2002, 06:24 PM   #1
keevitaja
Member
 
Registered: Aug 2002
Location: Estonia
Distribution: XP PRO
Posts: 119

Rep: Reputation: 15
quota on RH 7.3


i did search the forum and did like the howto's said, but i can't get this user quota to work... do i have to do it otherwise in my dist?
 
Old 08-15-2002, 11:12 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
What kind of problem are you experiencing with quota?
 
Old 08-16-2002, 08:41 AM   #3
keevitaja
Member
 
Registered: Aug 2002
Location: Estonia
Distribution: XP PRO
Posts: 119

Original Poster
Rep: Reputation: 15
dunno if i can call it s a problem. i think it is more like a lack of knowledge. if you would describe me how to make quota work on RH 7.3 i could say if there is a problem.
 
Old 08-16-2002, 10:43 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
If quota is not starting on boot up include these lines in your /etc/rc.d/rc.local
Code:
#Check quota and then turn quota on
if [-x /usr/sbin/quotacheck]
   then 
           echo "Checking quotas. It might take some time ..."
           /usr/sbin/quotacheck -avug
           echo "DONE"
fi
   if [-x /usr/sbin/quotaon ]
      then 
              echo "Turning on quota."
              /usr/sbin/quotaon -avug
   fi
Now there is another substep - configuration of individual partitions. For each partition on which you want quota, you'll need to setup three things: usrquota option, grpquota option and the quota database. It is simple just edit your /etc/fstab file to include usrquota or grpquota options on the respective partitions:
/dev/hdb1 /home ext3 defaults, usrquota 1 1
or for groups
/dev/hdb1 /home ext3 defaults, grpquota 1 1

Now the quota database: at the root of quota'd partition you need quota.user abd quota.group files which are readable by root only, so for /home
cd /home
touch quota.user
touch quota.group
chmod 600 quota.user
chmod quota.group

now you are redy to configure individual quotas
Note: the first time you turn the quota the quotaon command will report that quota.user and quota.group file have invalid arguments, it is ok, it will reappear untill you add at least one user to each database via edquota command
for instance if you run
edquota -u user_name
it will bring up an editor for quota to configure quota for user with user_name (hint the editor corresponds to env variable set on your system it is called ... EDITOR, so prior this step run
EDITOR=your_preffered_command_line_editor; export EDITOR
)
so I guess for everything else there is man page and internet resources.

Last edited by neo77777; 08-16-2002 at 10:45 AM.
 
Old 08-16-2002, 12:27 PM   #5
keevitaja
Member
 
Registered: Aug 2002
Location: Estonia
Distribution: XP PRO
Posts: 119

Original Poster
Rep: Reputation: 15
there's the thing! i can't make
/dev/hda3 /home ext3 defaults, usrquota 1 1
after reboot it says, that there is some bad line in /etc/fstab... and there is no /home/quota.user to chmod.
 
Old 08-17-2002, 09:53 AM   #6
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
What happens when you add users to qouta.user and quota.group ?
 
  


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
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 11:13 AM
Quota ziox Linux - General 3 05-07-2004 09:33 PM
quota lynger Linux - Software 0 04-26-2004 10:53 PM
Quota on/off sharon Linux - Newbie 2 07-21-2003 05:17 AM
How to Quota jcb_dreamvsat Linux - General 2 07-16-2003 03:56 AM


All times are GMT -5. The time now is 01:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration