Sponsored Content
Full Discussion: setting quotas
Special Forums Hardware Filesystems, Disks and Memory setting quotas Post 22720 by killerserv on Monday 10th of June 2002 02:19:54 AM
Old 06-10-2002
Modify your system init script to check quota and turn quota on at boot time

# Check quota and then turn quota on.

if [ -x /usr/sbin/quotacheck ]
then
echo "Checking quotas. This may 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

The golden rule is that always turn quota on after your file systems in /etc/fstab have been mounted, otherwise quota will fail to work. I recommend turning quota on at the end of your system init script, or, if you like, right after the part where file systems are mounted in your system init script.

Also try # repquota -a

Repquota produces a summarized quota information for a file system.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

disk quotas in UNIX?

RedHat 7.0 Caldera 2.4 From Windows 2000 server, you can allow ceratin users to use only so much disk space when they login. I'm sure you can do that in Linux/UNIX, but I just don't know how or what you call them here (disk quotas maybe?). Anyway, any kind help is always greatly appreciated.... (1 Reply)
Discussion started by: zorro81
1 Replies

2. Shell Programming and Scripting

Need help!! script for quotas

here is the file i must use to write my script (from a repquota -g) : Group used soft grace ... group1 -- 270000 0 0 ... group2 -- 1500005 0 0 ... group3 -- 55 0 0 ... ... ... ... ... the script has to... (2 Replies)
Discussion started by: tomapam
2 Replies

3. Solaris

Quotas and NIS

Has anyone ever used disk quotas with NIS? I tried to implement it the normal way but since the users only exist in NIS and not in the local passwd file when i try the edquota command it cannot find the user. Thanks (4 Replies)
Discussion started by: meyersp
4 Replies

4. UNIX for Dummies Questions & Answers

AIX 5.3 quotas

Hello, I will be creating several users on a new AIX box. I would like to limit the amount of data they can keep. How can I do that in smit or with a command. Thanks - Brad (0 Replies)
Discussion started by: rondebbs
0 Replies

5. Filesystems, Disks and Memory

auto quotas?

Heres a stupid question to all you Linux gods/goddesses. Is there any way to have the system automatically set user quotas when a user account is created or does it have to be done by hand or a script. Every article, thread, anything Ive read so far only shows how to set quotas manually. Any... (3 Replies)
Discussion started by: mcady_02
3 Replies

6. Linux

MySQL Quotas

How do I limit the maximum usage space for a specific MySQL user ?? Databases can be unlimited but the total sum of data on all tables and databases shouldn't exceed a limit I want. How to do this ?? (2 Replies)
Discussion started by: Nilesh_lf
2 Replies

7. Ubuntu

Download quotas for users

Hi peeps, I have a teenage lad who needs to learn some discipline with internet access etc. etc. My main problem is that he is downloading so much that he is using more than his fair share. What I'd like to do is set a download quota for him so that he can learn what this all means. Can... (10 Replies)
Discussion started by: greadey
10 Replies

8. Solaris

Quotas on /export/home

Hello all, I am trying to set quotas on /export/home filesystem for some of our users on a Solaris Zone I know that you would be redirecting me to some of the documentation pages, but I have already done that. The /export/home on the Zone is a Veritas FS and I cannot see an entry for... (4 Replies)
Discussion started by: grajp002
4 Replies

9. Solaris

quotas on two file system

Hi Guys, I have quota support turned on, on two file systems. However, when I do a repquota -va I get report only for one. What might be the problem? I will really appreciate your help. Thanks Gurus. (0 Replies)
Discussion started by: cjashu
0 Replies

10. UNIX for Dummies Questions & Answers

Disk Quotas

Hi, I'm practicing new things with Linux/Unix and I need someone to point me at the right direction. Lets say I create a user named user1. After creating it, how would I enable quotas for it. I have already added "userquota" under "/etc/fstab" and rebooted my system, but after I run the command... (1 Reply)
Discussion started by: abhi7514
1 Replies
quotaon(8)						      System Manager's Manual							quotaon(8)

NAME
quotaon, quotaoff - turns quota enforcement on or off SYNOPSIS
/usr/sbin/quotaon [-guv] file_spec ... /usr/sbin/quotaon -a [-guv] /usr/sbin/quotaoff [-guv] file_spec ... /usr/sbin/quotaoff -a [-guv] PARAMETERS
Specifies one or more file systems. Specify any file system by entering its full path name or its mount point. The full path name is the name entered in the file-spec field of the file system's entry in the /etc/fstab file. The mount point is the name entered in the mnt_point field of the file system's entry in the /etc/fstab file. For UFS file systems, you can alternatively enter the name of a block device special file. For example: /dev/disk/dsk3c. For AdvFS filesets, you can alternatively enter the name of a file domain, a pound sign (#), and the name of the fileset. For exam- ple: root_domain#root. FLAGS
Turns on (with quotaon) or turns off (with quotaoff) quotas for all file systems identified in the /etc/fstab file as read/write with quo- tas. Turns on or off group quotas only. Turns on or off user quotas only. Prints a message for each file system whose quotas are turned on or off. DESCRIPTION
The quotaon and quotaoff commands enable or disable user and group quotas that have been established using the edquota command. To turn the quotas on or off, the file systems specified must have the userquota and groupquota entries in the /etc/fstab file and be mounted at the time. quotaon and quotaoff must be run by a user with superuser authority. These commands expect each file system to have quota files named quota.user and quota.group in the root directory of the file system. (These default file locations may be overridden in the /etc/fstab file.) By default, both user and group quotas are affected by the quotaon and quotaoff commands. Use the -g flag to specify only group quotas or the -u flag to specify only user quotas. NOTES
The term file system represents either a UFS file system or an AdvFS fileset. The quotaon and quotaoff commands are used to manage user and group quotas: they are not used to manage AdvFS fileset quotas. Use the chfsets command to set or clear fileset quotas. AdvFS always maintains user and group file and block usage in the quota files (quota.user and quota.group). User and group quota limit information displays with the showfsets command even if quota enforcement is turned off. When a file system is unmounted, user and group quotas are disabled. After a file system has been remounted, use the quotaon command to enable user and group quotas on the file system. RESTRICTIONS
You must be the root user to run the quotaon and quotaoff commands. FILES
Specifies the command path Specifies the command path Contains user quotas for filesets Contains group quotas for filesets Contains file system names and locations RELATED INFORMATION
Commands: chfsets(8), showfsets(8), edquota(8), fsck(8), quota(1), quotacheck(8), repquota(8). Functions: quotactl(2). Files: fstab(4). delim off quotaon(8)
All times are GMT -4. The time now is 04:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy