Advanced Filesystem Management / Limiting Users by Quota
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.
Learn More
Subtitles of the Movie
The subject of this video is quotas. Yeah, that's different from the other subjects in this chapter, but we're just trying to follow the syllabus for the Red Hat course associated with the RHCT as closely as possible. So we limit users by quotas in this video, but before they can work, you have to make sure the desired file system is mounted, with quota settings. And file systems can be remounted with such without rebooting. Then we'll create quota configuration files and make the changes in fstab so they're applied the next time you boot Linux. Okay, let's see here. We have a separate file system for the home directory partition. Perfect. But it's not mounted with user quota or group quota settings. Let's do that. We remount the file system with user quota and group quota settings and there we go. Now the home directory partition is enabled for user quotas and group quotas. Next, let's create the quota configuration files. You can do that with the quota check command. If you're creating quotas on a different partition, such as a top level root directory or that associated with such, you would replace home with a forward slash for the top level root directory. Now let's do the quota check command. The C creates a new scan. The U applies user quotas. The G applies group quotas. The -M remounts the scanned file system. User quotas, group quotas, remount on the home directory based file system. That creates a couple of A quota files in the top level home directoryÉpardon me, not top level, but the home directory partition. This becomes the basis for group quotas and user quotas. Let's back up a second. We created the quota configuration files. Now let's activate them in the fstab configuration file so they're mounted as such the next time you boot Linux. We do that in the home directory file system by adding the appropriate settings. There we go. To specify quotas, you need to run the edquota command. But which quota is that? We'll configure quotas for a user. Let's do it for user Donna, but what's all this mean? Well, this is the file system associated with the top level home directory. This is the current number of blocks used by Donna's files. Now Donna has no soft limits or hard limits. The soft limit is a standard maximum in KB. The hard limit is the maximum if there is a grace period. In other words, let's say I have a soft limit of 100 MB. I might have a hard limit of 110 MB. In other words, the soft limit is the permanent limit and if I exceed that, I'm allowed to exceed it for a very short period of time, also known as the grace period. Similar options are possible for inodes. I can have essentially as many files as I do inodes and I can create soft and hard limits there as well. Now, what's a grace period? It's listed and can be changed when we run the edquota2 command. We have two grace periods, one for the number of blocks, which translates to KB, and a second for the number of inodes. There are seven days by default. If you're happy with the quotas you created, in this case for user Donna, you can apply them to other users. User Donna in this case is user 1 and you can apply them to any other users you desire. So let's apply Donna's quotas to user Michael and Test1. Now user Michael and user Test1 share the same quotas as applied to Donna. Thank you and on to the next video.
Tutorial Information
| Course: | Red Hat Certified Technician |
| Author: | Michael Jang |
| SKU: | 33785 |
| ISBN: | 1-933736-97-6 |
| Release Date: | 2007-07-24 |
| Duration: | 7 hrs / 103 lessons |
| Captions: | For Online University members only |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 