I just installed quota and the default quota for all users is zero (setting a quota to zero indicates that no quota should be imposed). Is there any way to edit this default quota? I want all users of this system to each have the same quota (200MB)
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You cannot really set default quota by quota tools. Usually, it is achieved having some script for adding users which also sets quota appropriately using setquota(8) and initially iterating over all users and setting quotas (either by setquota(8) command or using edquota -p).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just installed quota and the default quota for all users is zero (setting a quota to zero indicates that no quota should be imposed). Is there any way to edit this default quota? I want all users of this system to each have the same quota (200MB)
Thanks!
You cannot really set default quota by quota tools. Usually, it is achieved having some script for adding users which also sets quota appropriately using setquota(8) and initially iterating over all users and setting quotas (either by setquota(8) command or using edquota -p).
Thanks, we're now using pam_python to run setquota on pam_sm_open_session() , here is our pam_python module: http://nottheoilrig.com/pam/201212070/pam_local.py
http://ace-host.stuart.id.au/russell/files/pam_python/
http://linux-pam.org/Linux-PAM-html/mwg-expected-of-module-session.html