Quota is usually used in several situations: For WWWserver, for example, the size limit of each person's webpage space! For mailserver, for example, the email space limit for each person. For fileserver, for example, the maximum available network hard disk space for each person. the above is about the design of network services. If it is for the Linux system host settings, the following directions are used: 1. Restrict the maximum disk quota that a group can use (use group limit
Quota is usually used in the following situations:
For WWW server, for example, the size limit of each person's webpage space!
For mail server, for example, the email space limit for each person.
For file server, for example, the maximum available network hard disk space for each person.
The above is about the design of network services. If it is for the Linux system host settings, the following directions are used:
1. Restrict the maximum disk quota that a group can use (use group restrictions ):
2. Limit the maximum disk quota of a user (User restrictions ):
3. Use the Link Method to enable the mail to be used as the limit (change the/var/spool/mail path ):
The procedure is as follows:
1. First, I add a virtual hard disk to the virtual machine, or I can use the existing hard disk to limit the disk. Run the command fdisk-l to view the existing hard disk status.
2. Partition and format the new hard disk.
Partition command fdisk/dev/sdb
Format command mkfs-t ext3/dev/sdb
3. Mount the newly formatted Hard Disk/dev/sdb1 and create the mount point/mnt/sdb1.
Command mkdir/mnt/sdb1 mount command mount/dev/sdb1/mnt/sdb1
After mounting, you can run the mount command to view the mounting status or df-h to view the disk details.
4. Create a user in the corresponding quota directory
[Root @ localhost ~] # Useradd test1-d/mnt/sdb1
5. Use vim to modify the configuration file
[Root @ localhost ~] # Vim/etc/fstab
The specific modification is as follows. Save the modification and exit.
6. mount the file after modification.