An HTML attachment was scrubbed...
URL: 
/pipermail/mailinglist_ilug-cochin.org/attachments/20041223/72e71585/attachment.htm
From [EMAIL PROTECTED]  Thu Dec 23 12:59:27 2004
From: [EMAIL PROTECTED] (Rajesh)
Date: Thu Dec 23 12:59:33 2004
Subject: [Mailinglist] User/Group Level Quota in Linux
Message-ID: <[EMAIL PROTECTED]>

###############################################################################
                                * QUOTA *
###############################################################################
                      Obj:-Limit user's disk usage
                      --------------------------- 
   [STEP 1] Create /etc/fstab entry as follows (must
create a partition).
           _________           ________ 
            Fields             Eg.Entry    
           ---------           --------
         1 <device>             /dev/hda8
         2 <mount_point>        /home
         3 <File_System>        ext3 
         4 <mount options>      defaults,usrquota
         5 <dumb details>       0 
         6 <filesystem checks>  0

                                 1        2      3    
       4         5   6  
      Eg.Line in fstab file  /dev/hda8  /home  ext3  
defaults,usrquota 0   0

   [STEP 2] Give proper permissions to users
   [STEP 3] Check current status of quota partition 
        Eg.  # quotacheck -c /home   OR  # quotacheck
-uv /home
   [STEP 4] Switch on quota
            quotaon /home
--------------------------------------------------------------------------------
                         * Edit user's quota *
--------------------------------------------------------------------------------
     cmd.--> edquota -u <username>
         Eg. edquota -u raj

       Entries of quota file 
       ---------------------
       1. File system.(Device file)
       2. No. BLOCKS currently used.
       3. Soft limit of user.(when reached user is
warned)
       4. Hard limit.        (when reached stop user
from further writing)  
       5. INODES used.
       6. Soft limit of inodes.(when reached user is
warned)
       7. Hard limit of inodes.(when reached stop user
from further writing) 
--------------------------------------------------------------------------------
                             * GROUP QUOTA *
--------------------------------------------------------------------------------
   [STEP 1] Add an entry in /etc/fstab file as
            <mount options>     
defaults,usrquota,grpquota
   [STEP 2] Check quota 
            quotacheck -ug <device>
   [STEP 3] Edit quota of user by
            edquota -g <group name>
--------------------------------------------------------------------------------
                            * Report quota *
--------------------------------------------------------------------------------
                        repquota -q <device> <group>   OR
                        repquota -a
################################################################################
                      by [EMAIL PROTECTED]       
             18-12-2004 
################################################################################


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

Reply via email to