1 / 10

Quota’s in Linux

Quota’s in Linux. Werner Maes 3 april 2003. Quota’s: doel. Methode om schijfgebruik te controleren : Per gebruiker Per groep En om schijfgebruik te limiteren : Maximaal aantal bestanden per gebruiker / groep Maximale hoeveelheid schijfruimte per gebruiker / groep. Quota’s: werking.

evan
Download Presentation

Quota’s in Linux

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Quota’s in Linux Werner Maes 3 april 2003

  2. Quota’s: doel • Methode om schijfgebruik te controleren: • Per gebruiker • Per groep • En om schijfgebruik te limiteren: • Maximaal aantal bestanden per gebruiker / groep • Maximale hoeveelheid schijfruimte per gebruiker / groep

  3. Quota’s: werking • Geldt enkel voor een bepaalde partitie • Kan enkel ingesteld worden door root • File limit • Block limit • Soft limit • Hard limit • Grace Period

  4. Quota’s activeren • Aanpassen /etc/fstab (voorbeeld /home) LABEL=/home /home ext3 exec,dev,suid,rw,usrquota,grpquota 1 2 • Opnieuw mounten van /home [root@ls-cc3-03 root]# mount –o remount /home

  5. Quota’s activeren: deel 2 • Quotacheck  maakt databases aan [root@ls-cc3-03 root]# quotacheck -avug quotacheck: Scanning /dev/sda6 [/home] done quotacheck: Checked 18 directories and 81 files • Quota databases: aquota.group & aquota.user • Activeren quota’s via quotaon [root@ls-cc3-03 home]# quotaon /home

  6. Quota’s bekijken • Per gebruiker of per groep [root@ls-cc3-03 home]# quota -vu werner [root@ls-cc3-03 home]# quota -vg TST-CC3 • Overzicht voor de hele partitie [root@ls-cc3-03 home]# repquota –u -g /home

  7. Voorbeeld: repquota [root@ls-cc3-03 home]# repquota /home *** Report for user quotas on device /dev/sda6 Block grace time: 7days; Inode grace time: 7days Block limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- root -- 40244 0 0 23 0 0 werner -- 80000 100000 0 18 0 0

  8. Quota’s instellen • Per gebruiker of per groep via commando edquota [root@ls-cc3-03 home]# edquota -u werner [root@ls-cc3-03 home]# edquota -g TST-CC3 Met vi commando’s dien je de waarden aan te passen. • Aanpassen “grace period” [root@ls-cc3-03 home]# edquota -t

  9. Voorbeeld: edquota [root@ls-cc3-03 home]# edquota -u werner Er wordt een tijdelijk bestand geopend: Disk quotas for user werner (uid 18808): Filesystem blocks soft hard inodes soft hard /dev/sda6 80000 100000 0 18 0 0 Aanpassen van dit tijdelijk bestand gebeurt met vi commando’s.

  10. Instellen quota’s voor meerdere gebruikers of groepen • Kopiëren van quota’s [root@ls-cc3-03 home]# edquota -p werner jaak • Via linuxconf • Set quota defaults kiezen Bug: files limit = block limit block limit = file limit Resultaten worden weggeschreven in /etc/quota.conf • Via Webmin

More Related