User Management In Ubuntu (6) Hard Disk Quota links: User Management In Ubuntu (1) user account user management in Ubuntu (1) User Management in user account http://www.bkjia.com/ OS /201207/143927.html#tu( 2) group management (3) user management (4) password Management http://www.bkjia.com/ OS /201207/144448.html#tuin user management (5) grant regular user system administrator privileges http://www.bkjia.com/ OS /201207/144531.html in a large multi-user system, usually need to control each user can use the hard disk size. To manage the hard disk quota, you must install the quota and quotatool packages. Disk Quota Management in Ubuntu is disabled by default and can be enabled and configured by the system administrator. The system administrator can use a series of commands related to the hard disk quota: quotacheck to initialize the quota database file; edquota to set and edit the user quota; set quota to configure the hard disk quota; quotaon and quotaoff to control the quota service; warnquota automatically sends emails to users who exceed the hard disk quota. Quotas is not enabled even if the quota package is installed. After the quota service is enabled, you can view the/etc/fstb file and define the hard disk quota information in the 4th fields of each row. For example,/dev/hda5/home/ext3 defaults, usrquota, and kgquota 1 indicate that the/home partition has started the quota service. Two files, quota. user and quota. group, can be found in the root directory where the quota service is enabled. The file contains the specific quota information. The permission for these two files is 600, that is, the user cannot write all files; otherwise, the user may allocate a larger quota for himself. To initialize the hard disk quota, the partition must be remounted. Command: www.2cto.com sudo mount-o ro, remount partition_to_be_remounted mount_point commonly used hard disk quota Commands include: quotaon, quotaoff -- enable or disable the quota service repquota for a partition -- quotacheck -- Update the quota status of the user and group Hard Disk Quota (compare with the usage of the New and Old hard disks and run after fsck) edquota-basic quota management commands enable and disable the hard disk quota service by changing the entries in the/etc/fstab file. Add the usrquota or kgquota option to the 4th fields. You can also create the quota. user and quota. group files in the root directory of the partition, and then run the quotaon command to start the hard disk quota service. Sudo touch/quota. user (create quota. user File) sudo quotaon-av (enable Hard Disk quota Service) quota-v (users can query their hard disk quota) Author lqhbupt