In the previous blog, we introduced how to install and modify the configuration file of the samba service to set up the samba service. However, in windows, file servers can be managed by disk quotas. in linux, you can also set disk quotas to manage file servers, which is easier and easier to configure. First, let's give a general description of the basic steps of the disk quota to make it easier to understand later. 1. Check whether the software package is installed. 2. edit File System File 3. restart the computer 4. generate Disk Quota File 5. disk Quota for users or groups 6. there are many steps to start the disk quota, but we can see that the actual operation is only 2.3 steps, so it is very convenient. Next, let's take a look at the specific steps for linux disk quota. 1 rpm-qa | grep quota (check whether the quota package is installed) 2.vi/etc/fstab. restart the computer. We modified the file system file, but it does not take effect. It takes effect only when the computer is restarted and re-loaded. In addition, an error will be reported during the restart process because there is no disk quota configuration file. The restart command is reboot4. since the configuration file with no disk quota is displayed, we will use the quotacheck-cumg/command to generate the disk quota file. First, we will not see the configuration file with disk quota. After using the quotacheck-cumg command, we can see the following two configuration files. 5. Now our preparations are ready. Now we start to set disk quotas for users or groups. Here we will create a user test for testing. Useradd test uses this command to create a user's disk quota: edquota-u test will enter such a configuration file after you press Enter. After editing the number, we will go to Part 6. quotaon-av to start the disk quota. In this way, the disk quota is ready. You can also use the quota + User Name to view your disk quota. After the system sets the default time, the system automatically determines the capacity contained in the soft limit and hard limit. We can use edquota-t to set the time limit for the software. In this way, we can improve our file server through the samba configuration file and disk quota.