This tutorial will guide you on how to Allocate Quota for User on RedHat 8.1 Linux server.
1. Execute edquota command with your username to set a quota for user.
Syntax: edquota -u username
For example, set a redhat user quota soft as 786 MB and hard as 1024 MB.
[root@worldwidelinux ]# edquota -u redhat
Change value of soft limit value as 804864 and hard limit value as 1048576 in KB.
Save and Close the file by pressing Esc key and type :wq! then press Enter key.
2. Verify quota is allocated to user using repquota command.
Execute below command, to set a same existing user quota to new user, execute below command:
Syntax: edquota -p olduser newuser
For example, copy user redhat quota to redhat1 user.
[root@worldwidelinux ]# edquota -p redhat redhat1