Forums | Mahara Community

Support /
Setting Default Quota


anonymous profile picture
Account deleted
Posts: 3

12 January 2010, 15:57

Hi,

 We are new to all of this and loving it at the moment. The students are also impressed with the system - however we have one issue that we dont seem to be able to solve or find the fix for.

 How do we set the default system quota per student? We are using LDAP authentation, however we want to change the 50mb that they have all been assigned on mass. Can this be done?

Thanks for your help in advance.

Heinz Krettek's profile picture
Posts: 480

13 January 2010, 5:19

Hi Mark,

great to hear that your students love Mahara Cool

you can change the default quota for new users in the admin area ([your_mahara]/admin/extensions/pluginconfig.php?plugintype=artefact&pluginname=file&type=file )

If you want to modify the setting for existing users you have to change the value of the field in the sql db directly.

HTH Heinz

anonymous profile picture
Account deleted
Posts: 8

04 October 2010, 5:44

"If you want to modify the setting for existing users you have to change the value of the field in the sql db directly."

Yes, but how?

Adrian Birch

 

anonymous profile picture
Account deleted
Posts: 214

04 October 2010, 8:22

Hi Adrian,

As Heinz suggests, you can set the default quota for new users by going to your Site Administration -> Extensions. Under Artefact, find file/file and select config.

As Heinz mentioned, this will only change the settings for new users and not existing users. To change the quota for new users, you'll have to modify the database.  Fettling in the database is not recommended, but assuming you're confident and comfortable with database administration then it's trivial. As always, make a backup before making any changes. The SQL you'll need will be something like this:

BEGIN;
UPDATE usr SET quota = 1024*1024* MB;

Where MB = the size in MB you'd like to assign. This will assign ALL users with the quota specified.

So for example, to assign all users with a 500MB quota instead of the default 50MB, then roll back the transaction:

BEGIN; UPDATE usr SET quota = 1024*1024*500; ROLLBACK;

Obviously, commit the transaction or rollback as appropriate when finished otherwise you'll prevent logins to your Mahara.

Andrew

anonymous profile picture
Account deleted
Posts: 8

04 October 2010, 8:37

Smile Thanks very much!

Adrian BIrch

5 results