This article explains the steps to configure disk quota for user in Linux. Please note that the /home should be a separate partition in-order to proceed with this configuration.
Step1: Login to the machine as root.
Step2: Open the mount configuration.
Step3: Add the options "uquota,gquota" along with "defaults" for the mount point /home and save the file.
/dev/mapper/myserver-home /home XFS defaults,uquota,gquota 0 0
Please note that the partition name and mount point may change according to the Linux installations.
Step4: Remount the /home partition.
#mount -o remount /home
Step5: Configure quota for the user.
#xfs_quota -x -c 'limit bsoft=SOFTLIMIT bhard=HARDLIMIT USERNAME' /home/
Where USERNAME need to be replaced with the corresponding username and SOFTLIMIT, HARDLIMIT need to be replaced with the required sizes in mb or gb.
Step6: Check and verify the quota report for the home partition.
#xfs_quota -x -c 'report -bi -h' /home