OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Steve DE DONCKER (dedonckerspandora.be)
Date: Wed Apr 10 2002 - 10:09:24 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    hi list,

    I've set up quota for the people in the group users by using ''edquota -g
    users``,
    just as faq told me..

    when testing this I noticed that when you go over your quota you just get a
    permission denied message.

    I was wondering if it was possible to make a short custom msg when they
    exceed
    their quota, explaining them what just happened, because most of my users
    are
    morons for whom the meaning of 'disk quota' is too hard to grasp.

    edquota -g users looks like this

    Quotas for group users:
    /tmp: blocks in use: 9305, limits (soft = 8192, hard = 10240)
            inodes in use: 61, limits (soft = 0, hard = 0)
    /var: blocks in use: 9305, limits (soft = 8192, hard = 10240)
            inodes in use: 61, limits (soft = 0, hard = 0)
    /home: blocks in use: 9305, limits (soft = 16384, hard = 20480)
            inodes in use: 61, limits (soft = 0, hard = 0)

    small example

    $ quota -g
    Disk quotas for group users (gid 10):
         Filesystem blocks quota limit grace files quota limit
    grace
               /tmp 237 16384 20480 59 0 0
               /var 237 16384 20480 59 0 0
              /home 237 16384 20480 59 0 0
    $ cp /home/data/school/sdm.tar.gz ~
    $ du -h sdm.tar.gz
    8.8M sdm.tar.gz
    $ du sdm.tar.gz
    18048 sdm.tar.gz
    $ quota -g users
    Disk quotas for group users (gid 10):
         Filesystem blocks quota limit grace files quota limit
    grace
               /tmp 9261 16384 20480 60 0 0
               /var 9261 16384 20480 60 0 0
              /home 9261 16384 20480 60 0 0
    $ cp /home/data/school/sdm.tar.gz ~
    cp: /home/bart/sdm.tar.gz: Permission denied

    thanks

    --
    steve