How to start Quotalinux on Linux also online Wang Jun
〖
Back to〗 Forward〗
How to launch quota reprint on Linux: Linux also online Wang Jun rated file: Linux quota mini-HOWTO Archive Narration: Disk space limit Simple instructions file number: lrg.ldtp.mhowto.001 Translation Date: 1996/09/20 Translation Maintenance: askCHEN@ms1.hinet.net O ---------------------------------------- ----------------------- x --- How to start Quota Update Date on Linux: sat Jul 27 21:04:38 PDT 1996 Preface: This The copyright of the document is reserved by Albert MC Tam (Bertie@scn.org). Agree to the use of this document, copy, therefore the non-commercial spread is permissible, but all copies and / or the names of the author and editor must have the name and the note. This document is because it is expected to be helpful, but it is not responsible, whether it is understanding or implicit. Although all the tasks of the correctness of the information in this document can be done, the author / editor / maintainer has no responsibility for any loss of damage to the error, or because of the information contained in this document. This file describes how to enable quota of the archive system on the Linux host, specify quota, and other Quota instructions for users. It applies to executing the use of a 2.x version of the core (tested on 2.0.7). It is recommended to update the user of the old version. If you find any errors, or miss anything, don't pay them to bertie@scn.org. I will be very grateful! -------------------------------------------- -------------------- What is Quota? Quota allows you to specify a save restriction of a disk from two aspects: the number of index nodes (inodes) that users can dominate ; And the number of disk blocks that users can take. The meaning behind the quota is that the forces are kept under most of the time in their disk usage restrictions, canceling their ability to use the disk space in the system. Quota currently in Linux QUOTA's support according to I knows that I have been integrated into the core from the 1.3.8x version, and it is also in the center of version 2.0. If your system does not support quota, then I suggest you update. So far, Quota can only operate on the EXT2 archive system. Using Quota's demand in Linux, the core 2.x version can get from here ftp://tsx-11.mit.edu/pub/linux/sources/system/v2.0/ quota Software Test Your Linux The kit is fixed, and it may have been installed on your system or there may be no quota software.
The original program code of the Quota software can get ftp://ftp.funet.fi/pub/linux/people/linus/subsystems/quota/all.tar.gz. ------------ -------------------------------------------------- - Set Quota on Linux - Part 1: Configuration 1. Configure your core to reconfigure your core and answer Y Y to join the Quota Support: Quota Support (config_quota) [N] y 2. Compile And install the original program code of the quota software quota software can be obtained from here ftp://ftp.funet.fi/pub/linux/people/linus/subsystems/quota/all.tar.gz Although I mentioned above the quota software kit It has been ported to Linux, and should be compiled on the system of executing the 2.X version; how you may encounter some troubles, and the C compiler constantly complains about some undefined MNTOPT. If this problem occurs, you will have to copy its mntent.h file to /usr/include/metent.h to compile quota. 3. Modify your system's launch instruction manuscript to check Quota and open quota in the startup period. There is an example: # check quota and death quota on. If [-x / usr / sbin / quotacheck] THEN Echo "Checking quotas. This May Take Some Time. "/ usr / sbin / quotacheck -avug echo" DONE. "Fi if [-x / usr / sbin / quotaon] Ten Echo" Turning on quota. "/ usr / sbin / quotaon -avug fi constant The rule is * Always * I have to open the quota after I hang in the file system in your / etc / fstab, otherwise Quota will not work. I suggest that you open quota in your system's start-up instruction manuscript, or if you like it, open it in your system instruction manuscript to the archive system. 4. Modifying / etc / fstab Also does not enable quota split area generally looks like: / dev / hda1 / ext2 Defaults 1 1 / dev / hda2 / usr ext2 defaults 1 1 To join Quota on the archive system, included " DEFAULTS "The fourth field of this word plus" USRQUOTA ". / dev / hda1 / ext2 defaults 1 1 / dev / hda2 / usr ext2 defaults, usrquota 1 1 5. Built "quota.user" this quota record file, quota.user, should be owned by root, and root read Write the permissions and anyone else. Check in with root. Go to the top layer of the quota division area, and this to build quota.user: touch /Partition/quota.user chmod 600 /paartition/quota.user 6. Restart Now Restart the system so that you make changes to the change . At the same time, it is only necessary to step 4, 5, and 6 for other split areas you want to enable Quota. Set the quota - the second part in Linux: Specify the quota of the user to execute using the Edquota instruction.