Beruflich Dokumente
Kultur Dokumente
2. Edit your /etc/fstab file - You'll need to add the usrquota option to the /etc/fstab file to let it
know that you are enabling user quotas in your file system.
Old /etc/fstab file
LABEL=/home /home ext3 defaults 1 2
New /etc/fstab file
LABEL=/home /home ext3 defaults,usrquota 1 2
3. Remounting your file system - Once you finish editing your /etc/fstab file, you have to
remount your filesystem as follows :
# mount -o remount /home
4. Create aquota.user and/or aquota.group files - These are created in the top most directory of
the file system. In our case /home. In our case, we are enabling only per user quotas so only
aquota.user file is required.
# touch /home/aquota.user
# chmod 600 /home/aquota.user
5. Make linux read the aquota.user file - This is done using the quotacheck command.
# quotacheck -vagum
6. Edit the user's quota information - Use the edquota command for this purpose.
# edquota -u
The above command will invoke the vi editor which will allow you to edit a number of fields.
In our example, we limit the user killer to a maximum of 5MB of data storage on /dev/hda3
(/home) as follows:
7. Get out of single user mode : Return to your original run level by typing eaither init 3 or init 5
commands.
Getting quota reports - The repquota command lists quota usage limits of all users of the system.
Here is an example.
# repquota /home