How to set up disk quotas on Red Hat Linux.

1). Edit file "/etc/fstab" - Look for the line starting with:

LABEL=/home (or LABEL=/ if there is no LABEL=/home)

On this line change the word

defaults

To:

grpquota,usrquota,defaults

2). Reboot the system

$> /sbin/shutdown -r now

3).When the system comes back up from reboot run this command:

$> quotacheck -guvma

3). Then start quotas

$> quotaon -guva

Done - every time you reboot your server the quotas should automatically start.

Problems?

When I run "quotacheck -guvma" I get the following error:

quotacheck: Cannot get quotafile name for
quotacheck: Cannot get quotafile name for

To solve this - simply run the following command:

$> quotacheck -guvmaic

This should give you something similar to the following output:

quotacheck: **** done
quotacheck: Checked 4 directories and 15 files
quotacheck: Old file not found.
quotacheck: Old file not found.

You can then start quotas

$> quotaon -guva

Related:
Tripanel tutorials index

Reference:
Red Hat Linux Website


 
  Visit Noc2 Scripts and Software