Back again - User Quotas

Associate
Joined
2 Sep 2007
Posts
2,001
I have managed successfully to set quotas for my users following this guide - http://telatin.wordpress.com/2009/03/02/user-quotas-with-ubuntu/ The following line takes me into an editor to change the quota but the problem I have is want to do this via a bash script. Any ideas how I can do the following command in a script without having to go into an editor?

sudo edquota -u username -f /dev/desiredpartition
 
Managed to find a solution by using this: -

edquota -p usertemplate username

usertemplate is a user who has the same defaults as everyone (could be 10mb for e.g.) and username is what I want to apply the quota to.
 
Last edited:
Back
Top Bottom