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

User and group disk quotas - Linux Tutorial

From the course: Linux: Storage Systems

Start my 1-month free trial

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.…

Contents