Created
February 27, 2022 12:24
-
-
Save AlexRogalskiy/1e830f9e5f8892f0f9d16d15e8a9bf12 to your computer and use it in GitHub Desktop.
Turn on quotas on just the volumes that need it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount | grep '(rw.*quota.*)' | cut -d' ' -f3 | xargs -I% sh -exc "{ [ -e %/aquota.group ] && [ -e %/aquota.user ] ; } || quotacheck -cug %" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment