Linux System Administration
Quotas
(1) Editing
/etc/fstab
We need to add quota support to the file system.
Add
usrquota
to field four of the partition for which we want to set quotas.
/dev/hda2 /home ext3 defaults,usrquota 1 2
/dev/hda2 /home ext3 defaults,grpquota 1 2
/dev/hda2 /home ext3 defaults,usrquota,grpquota 1 2
This will allow the
/home
file system to allow disk quotas for all users' home directories under the
/home
directory.
The filesystem will have to be remounted in order for the change to take effect.
The following command will allow you to unmount and remount this directory:
[root@localhost etc]# mount -o remount /home
If this command does not work, then you will have to reboot.
Please be kind and let your users know that you are going to be doing this step. They may lose data if they are logged on at the time.
Remember that if you type
init 1
, you will be in single user mode.
/home
is not mounted in this mode.
Prev
Page 4
Next