dijous, 9 de juliol del 2009

Sistema de quotes en Linkat2

Quota Utilities for SuSE Linux

Quota Support has been added to SuSE Linux via startup scripts /etc/init.d/boot.quota and /etc/init.d/quotad.

For using Quota Support:

1. Use a kernel with Quota support enabled (our standard kernels have quota support enabled by default)

2. Decide which partitions should have quota support and change /etc/fstab accordingly, i.e. add the usrquota and/or grpquota or quota flags, e.g.

On journaled filesystems, you can enable journaled quota with usrjquota, grpjquota and jqfmt options, and avoid the need to run quotacheck after unclean shutdown.

/dev/sda1 / ext2 defaults 1 1
/dev/sda6 /tmp ext2 defaults,usrquota 1 2
/dev/sda3 swap swap defaults 0 0
/dev/sda7 /usr ext2 defaults 1 2
/dev/sda8 /home ext3 acl,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 1 2



I have have thus enabled user quotas on /tmp and journaled quota
on /home.

3. Initialize Quotas for the first time by invoking
quotacheck -avug

4. Turn on quota and quotad services with YaST2 Runlevel editor

5. quotacheck is called always during boot.

If you think your quota-files are corrupted or you moved changed files with quotas being off you have to rebuild the quota database manually by invoking quotacheck -avug

6. Before using warnquota, remember to edit /etc/warnquota.conf
and /etc/quotatab configuration files.

have fun


Assignar quotes d'usuari:

setquota -u -F vfsv0 __USUARI__ 0 0 0 0 /home

Cap comentari:

Publica un comentari a l'entrada