{"id":630,"date":"2016-11-20T12:16:39","date_gmt":"2016-11-20T10:16:39","guid":{"rendered":"http:\/\/helia.ee\/koolitus\/?page_id=630"},"modified":"2016-11-20T12:16:39","modified_gmt":"2016-11-20T10:16:39","slug":"problem-with-the-user-quotas-lesson","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=630","title":{"rendered":"Problem with the User Quotas lesson"},"content":{"rendered":"<p>Thanks for the bump Richard \ud83d\ude09<br \/>\nFinally found a solution tonight :<\/p>\n<p>Step 1<br \/>\n&#8212;&#8212;&#8211;<br \/>\nDebian :<br \/>\nsudo apt-get install quota quotatool<\/p>\n<p>CentOS :<br \/>\nsudo yum install quota<\/p>\n<p>Step 2<br \/>\n&#8212;&#8212;&#8211;<br \/>\nEdit \/etc\/fstab<br \/>\nOn the partition line, write these options : defaults,usrquota,grpquota<\/p>\n<p>Step 3<br \/>\n&#8212;&#8212;&#8211;<br \/>\nunmount then mount the partition again with this command (for the \/ partition, if your setup is different, modify the command accordingly) :<br \/>\nsudo mount -o remount \/<\/p>\n<p>Step 4<br \/>\n&#8212;&#8212;&#8211;<br \/>\nCreate the necessary files (\/aquota.user and aquota.group) with the following command\u00a0:<br \/>\nsudo quotacheck -cvugm \/<\/p>\n<p>Step 5<br \/>\n&#8212;&#8212;&#8211;<br \/>\nEdit the quotas for the user wou want to limit as you see fit :<br \/>\nsudo edquota username<\/p>\n<p>Step 6<br \/>\n&#8212;&#8212;&#8211;<br \/>\nOnce you&#8217;re done, save the file and activate the quotas :<br \/>\nsudo quotaon \/<\/p>\n<p>This worked on both my CentOS and my Debian 7 lab virtual machines. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Thanks for the bump Richard \ud83d\ude09 Finally found a solution tonight : Step 1 &#8212;&#8212;&#8211; Debian : sudo apt-get install quota quotatool CentOS : sudo yum install quota Step 2 &#8212;&#8212;&#8211; Edit \/etc\/fstab On the partition line, write these options : defaults,usrquota,grpquota Step 3 &#8212;&#8212;&#8211; unmount then mount the partition again with this command (for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":627,"menu_order":11,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-630","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=630"}],"version-history":[{"count":1,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/630\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/630\/revisions\/631"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/627"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}