quota

saroos1

Member
May 25, 2018
718
0
16
Hi

I want ask, can I give to users quota for HDD on Ubuntu ?
I have users use rtorrent I want give to every users quota for HDD like:
user1 = 10GB
user2 = 50GB
... etc
 

saroos1

Member
May 25, 2018
718
0
16
ok, i search in google
and find tutorial for how make quota with install webmin.
but in this step :
Edit "/etc/fstab" and add ",usrquota,grpquota" like this : /dev/md7 /home ext3 defaults,usrquota,grpquota 1 2
but my "/etc/fstab" is different look this is file "/etc/fstab" in my server :
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=8674a74c-9272-49aa-8e29-7a2e5ca1d6e2 / ext4 errors=remount-ro 0 1
# swap was on /dev/md1 during installation
UUID=9d42a301-53e6-4eaa-8288-98b7b39d0826 none swap sw 0 0
 

peshua19

Member
May 25, 2018
897
0
16
You need to activate quota on the partition.

Also wahy look on google ?
I linked you to posts on this forum about quota .. as it has been asked before
 

saroos1

Member
May 25, 2018
718
0
16
Quote from: AbOoOdY on September 28, 2010, 08:07:40 am
ok, i search in google
and find tutorial for how make quota with install webmin.
but in this step :
Edit "/etc/fstab" and add ",usrquota,grpquota" like this : /dev/md7 /home ext3 defaults,usrquota,grpquota 1 2
but my "/etc/fstab" is different look this is file "/etc/fstab" in my server :
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=8674a74c-9272-49aa-8e29-7a2e5ca1d6e2 / ext4 errors=remount-ro 0 1
# swap was on /dev/md1 during installation
UUID=9d42a301-53e6-4eaa-8288-98b7b39d0826 none swap sw 0 0​


I fix this error
when I type this command , "mount -o remount /home"
give me this error "mount: can't find /home in /etc/fstab or /etc/mtab"
change to "mount -o remount /"
 

saroos1

Member
May 25, 2018
718
0
16
Quote
You need to activate quota on the partition.

Also wahy look on google ?
I linked you to posts on this forum about quota .. as it has been asked before


you put link Search only
 

randac56

Member
May 25, 2018
915
0
16
just so you know, if you need quota, you need to buy the quota mod for rutorrent. Without it you will have serious issues.

if you are interested in talking more about this please email me at [email protected]
 

peshua19

Member
May 25, 2018
897
0
16
The plugin is nice, but if you want a quick and dirty quota system for free, install webmin then do this:
In Webmin, click Others then System and Server Status.
Then click Add monitor type: Directory size.
Now you can set the GB for any directory and use webmin to issue comands such as kill rtorrent and even issue command when back under quota like start rtorrent.
Only problem is user can still go over quota with FTP but this no problem really.
We make 2nd monitor to lock his password if he go to high, like another 10GB over quota.

Then enable Scheduled monitoring for every 5 minutes or so.
 

lisas4567

Member
May 25, 2018
773
0
16
that's not a real solution, but i guess that would work.


Our quota mod is a lot nicer. It has monitoring so the user can see how much space is left, and it doesn't stop seeding torrents when quota is met.
 

peshua19

Member
May 25, 2018
897
0
16
Indeed it is very important for me that I can still seed even if I hit my mark.
Otherwise you end up with some really angry customers , as they do not see that they are over quota
As this always happens when the user is not at the pc monitoring the webui , so he can not delete stuff