Results 1 to 9 of 9
Thread: Set quotas for each users
-
06-30-2006, 12:14 PM #1Newbie
- Join Date
- Nov 2003
- Posts
- 12
Set quotas for each users
How do I set quotas for each user I host in linux?
-
06-30-2006, 02:40 PM #2Web Hosting Master
- Join Date
- May 2006
- Location
- India
- Posts
- 661
Have you got a control panel or its a plane linux machine ?
██ SparkSupport.Com - The Premier Tech Company
██ Cloud Solutions|Email Infra setup|VOIP|Video Streaming|Software Development
██ Email: info@sparksupport.com █ Phone : 1- 408-600-1449 | Skype : shijils
-
07-01-2006, 08:10 AM #3Newbie
- Join Date
- Nov 2003
- Posts
- 12
Originally Posted by SparkSupport
-
07-01-2006, 09:32 PM #4Newbie
- Join Date
- Nov 2003
- Posts
- 12
any one can help?
-
07-01-2006, 09:55 PM #5Web Hosting Master
- Join Date
- Dec 2004
- Location
- Washington, DC
- Posts
- 789
Just a "plain" linux box? What distribution? What Kernel?
What kind of quotas are you trying to set? Hard drive space? RAM? concurrent processes? bandwidth?
If those questions are answered, others and I may be able to help you further.
-
07-02-2006, 05:39 AM #6Greece
- Join Date
- Jan 2004
- Location
- Greece
- Posts
- 2,211
If you need to set disk space or files quotas you can do it using:
edquota username
You can check quotas using:
quota -v username
You can see quotas for all users using:
repquota -a
-
07-02-2006, 05:43 AM #7Greece
- Join Date
- Jan 2004
- Location
- Greece
- Posts
- 2,211
Before you type the above commands you should enable quotas.
cd /home (or to the partition you want)
touch aquota.user aquota.group
chmod 600 aquot.user aquota.group
Then edit /etc/fstab and change the line that shows your partition to something like:
/dev/sda4 /home ext3 defaults,usrquota,nosuid 1 2
Then restart server and after that type the commands in my previous post.
-
07-02-2006, 10:15 AM #8Newbie
- Join Date
- Nov 2003
- Posts
- 12
Originally Posted by CretaForce
Code:# This file is edited by fstab-sync - see 'man fstab-sync' for details /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0
-
07-02-2006, 10:40 AM #9LORD OF THE RINGS
- Join Date
- Dec 2005
- Location
- Internet
- Posts
- 1,352
Giving it to / might help.
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
Then run the command
#mount -o,remount /
quotacheck -a / , to check if Quota has been setup correctly.Last edited by ServerNinja; 07-02-2006 at 10:44 AM.
Senior Server Administrator