Skip to content

Instantly share code, notes, and snippets.

@AlexRogalskiy
Created February 27, 2022 12:24
Show Gist options
  • Save AlexRogalskiy/1e830f9e5f8892f0f9d16d15e8a9bf12 to your computer and use it in GitHub Desktop.
Save AlexRogalskiy/1e830f9e5f8892f0f9d16d15e8a9bf12 to your computer and use it in GitHub Desktop.
Turn on quotas on just the volumes that need it.
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