

Now all members of web group can upload total of 100MB data.
USER FTP DISK QUOTA DOWNLOAD
You have to set the permissions to /home/myproject with SGID so that all members in this group can be able to upload and download data to /home/myproject without any issue.

Don’t forget to run the below command, this is most valuable command for group disk quota.

But in this article I will provide you another way to set group quota. Most of Linux user use edquota command to edit the quota temporary file to mention desired values. Now assign the disk quota on group web, you can do this using edquota or setquota command. After running above command verify the quota is assign on group or not. Now enable the quota typing below command. You can see the created aquota file for user and group under the filesystem directory after running above command. Remount the partition with rw permissions. Reboot the server to apply changes or remount the partition.Ĥ. In the above example I have enabled user and group quota check on / home file system. dev/hda2 /home ext3 defaults,usrquota,grpquota 0 0 Edit the /etc/fstab and add usrquota and grpquota to the corresponding file system: # vim /etc/fstab # useradd -m -d /home/myproject -g web sanjayģ. # useradd -m -d /home/myproject -g web faeem # useradd -m -d /home/myproject -g web sagar Now create all above mention users with their home directory “ /home/myproject” and group as web. Group Disk Quota Limit : 100MB soft and 110MB hard limit Set Disk Quota On Group In Linuxįollow the below steps to assign disk quota on group.ġ. In this tutorial I will explain how you can assign disk quota on group in Linux. So it’s easy to restrict per group basis on this group store than user based restriction, that’s why we can set some limit on all the users in the same group on how much they can upload all together in to that ftp location. There are lots of user who asked me why we require group quota if we have user quota?Īnswer is very simple, In any company employee work on any one projects in a group and they share their data in a common location such as ftp server and this ftp server accessed by any user from that group.
