Home > Linux, Ubuntu > How to Quota Users & Groups in Ubuntu

How to Quota Users & Groups in Ubuntu



sudo apt-get install quota quotatool

Edit /etc/fstab and add usrquota and grpquota options to the mount point which contains the home directories. For me this was the root mount point, but it will depends on how you did your partitoning (it could be that you made a separate mount point for /home).

sudo gedit /etc/fstab

The entry should read something like:

# /dev/hda1 UUID=4ea80ca3-37b7-447e-831a-700a38627029 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1

Finish setup with the following series of commands

sudo touch /quota.user /quota.group
sudo touch /aquota.user /aquota.group

sudo chmod 600 /quota.*
sudo chmod 600 /aquota.*

sudo mount -o remount /

sudo quotacheck -avugm

sudo quotaon -avug

edquota myuser
# For 1 GB -> 1024000
Disk quotas for user ramesh (uid 500):
Filesystem blocks soft hard inodes soft hard
/dev/sda3 1419352 0 1024000 1686 0 0

Categories: Linux, Ubuntu
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: