From the course: Linux: Storage Systems
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
User and group disk quotas - Linux Tutorial
From the course: Linux: Storage Systems
User and group disk quotas
- [Narrator] Linux provides a disk quota mechanism, that is you can limit how much disk space a user or a group can use. Both disk space and number of files or directories. So you do this to keep users from filling up your whole partition. And that means that your systems, you know, going to run a little more robustly so that if a user uses up all their space, there's still space available for system things and so forth. XFS has it's own quota mechanism so the commands work with XFS are a little bit different. We'll use ext4 and we'll see how the quota stuff works. So what you'll want to do is mount your partition with the user quota or group quota options on. So that we're checking for quotas. For example, we could mount the sda2 partition on the home directory with the option user quota. In fact, the home directory is where quotas are usually used because that's where users typically create files. The quotacheck command will do some accounting, look at how much is used by the users.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Restore default SELinux file contexts7m 55s
-
(Locked)
Configure encrypted partitions4m 58s
-
(Locked)
Manage file system access control lists6m 46s
-
(Locked)
File permission problems6m 59s
-
Using SUID, attributes, and read-only7m 49s
-
(Locked)
User and group disk quotas7m 18s
-
(Locked)
Challenge: SELinux, LUKS, ACLs, and quotas1m 59s
-
(Locked)
Solution: SELinux, LUKS, ACLs, and quotas7m 42s
-
(Locked)
-
-
-