-linux disk quotas per user management (quota)

Source: Internet
Author: User

I've organized the basics according to the ref link below Yes per user quota management steps
(The quota management by group is simplified)
I am finishing in Ubuntu server 12.04, other versions of Ubuntu and Linux should be no problem

(with any errors, please correct me, including typo)

<-> Preparation:

sudo apt-get Install quota

< two > by user name Quota steps are as follows:

1. Set the partition with quotas:/etc/fstab:
Like
UUID=5CE4F28A-23CE-464A-86E0-7CAA61503961/MNT/SDB3 ext4 Errors=remount-ro,usrquota 0 1

(This is required for partitions that require quotas)

2. Quotacheck-avu

3. Edquota-u Xiec (Xiec user name)
Default is 0 means no limit

Example:
Disk quotas for user Ramesh (UID.):  Filesystem           blocks       soft       hard     inodes     soft  Hard /dev/sda3           1419352          0          0       1686        0        0

(Front two 0 0 is the back of space management two 0 0 is I node management if you ignore it, keep it 0.
More than soft will notice more than hard will not add files, login or no problem! )

4. Start the Quota service:
/etc/init.d/quota Start (in addition to auto-start the whole boot)
/etc/init.d/quota Status (view service status)

5. Update the quota partition check and notify the administrator:

#/etc/cron.daily/quotacheck:
/etc/init.d/quota stop
Quotacheck-avu
Etc/init.d/quota start
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.