User management in Ubuntu (6) hard disk quota

Source: Internet
Author: User
Ubuntu user management (6) hard disk quota Related links: Ubuntu User Management (a) user account http://www.2cto.com/ OS /201207/143927.html?ubuntuin user management (2) Group management http://www.2cto.com/ OS /201207/143929.html;Ubun...
User management in Ubuntu (6) hard disk quota links: User management in Ubuntu (1) user account http://www.2cto.com/os/201207/143927.html ; User management in Ubuntu (2) Group management http://www.2cto.com/os/201207/143929.html ; User management in Ubuntu (3) User Management http://www.2cto.com/os/201207/143932.html ; User management in Ubuntu (4) password management http://www.2cto.com/os/201207/144448.html ; User management in Ubuntu (5) grant system administrator privileges to regular users http://www.2cto.com/os/201207/144531.html In a large multi-user system, you usually need to control the hard disk size that each user can use. 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.