I just want to make sure my students to be uploading, creating or storing files not bigger than 8MB in our file repository. Is it possible for me to do it in ubuntu linux?
Since each user has their own Linux account, you could choose to limit disk usage by per-user quotas. This wouldn't limit individual file uploads, but would limit the total space available per user.
To do this, you need to:
- Install the quota tools:
apt-get install quota
- Add the
usrquotamount option to the relevant filesystem in
- Remount the filesystem (reboot,
mount -o remount,usrquota).
- Create the filesystem quota database with
quotacheck -uc /mountpoint.
- Use the
edquotacommand to set an appropriate quota for each user. (I suggest doing this in a loop with a lot of users!)