LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-11-2010, 07:02 AM   #1
mohammed nadeem
LQ Newbie
 
Registered: Mar 2010
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
To set the quota


How can I set quota on group plz send me detail with command.
Thanks to all who have sent me their solution but
I am still facing problem to set the quota. I've tried many option plz send all steps to set quota from start to end.

Last edited by mohammed nadeem; 03-13-2010 at 12:48 AM.
 
Old 03-11-2010, 07:06 AM   #2
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
http://www.google.co.uk/search?clien...utf-8&oe=utf-8

Which of these have you tried, and where did they fail?

Presumably you have tried research?
 
Old 03-11-2010, 07:13 AM   #3
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

Rep: Reputation: 64
Have a look:
http://www.linuxquestions.org/questi...uccess-439079/
 
Old 03-11-2010, 07:30 AM   #4
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Well, I'm primarily going through this to see if I've got it right myself (as I'm sure someone else will correct me if I'm wrong at any point), but really - you should at least make the pretense of having put some effort in yourself...

This assumes a RedHat system, if you're using something else, this will at least get you started.

1. Check that quotas have been set up in the default kernel on your system.

# grep CONFIG_QUOTA /boot/config-`uname -r`

Check that the return is "CONFIG_QUOTA=y"

2. Check that the quota package is installed.

# rpm -qi quota

3. Assuming yes, add quotas to appropriate areas in /etc/fstab - I'll assume /home on the second drive using ext3.

/dev/sdb1 /home ext3 exec,dev,suid,rw,grpquota 1 2

4. Create quota files (done automatically these days, I think) by remounting the selected filesystem and activating quotas.

# mount -o remount /home
# quotacheck -cgm /home

c - performs a new scan.
g - scans for group quotas.
m - remounts the scanned filesystem.

Once the command is run, you should be able to find the "aquota.group" file in the configured directory.

5. Run the "edquota" command to specify quotas for a particular group.

# edquota -g <group>

Differences between soft and hard limits can be found out from Google

6. Save the file.

8. Add a "quotacheck" command to your /etc/crontab to check for quota limits periodically.


...I think that's it - if I'm wrong, I'm sure somebody will post corrections.
 
  


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 can I set a quota on a directory? abefroman Linux - Server 5 11-10-2009 10:12 AM
how to set quota at /home davidhk Linux - General 2 06-04-2005 11:10 PM
Quota:cannot be set and update swmok Linux - Software 1 10-22-2003 08:30 PM
how to set quota awp Slackware 1 04-27-2003 01:58 PM
how to set quota, a/c and permission gogo Linux - General 1 10-09-2001 02:54 PM


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