Talk:Disk quota

From ArchWiki
Revision as of 23:19, 30 May 2010 by Self (Talk | contribs) (about awk method)

Jump to: navigation, search
The idea is to make a temporary user acount, modify the quota settings for that user, and then copy the generated quota files for all users to use. After setting quota settings for quotauser, copy the settings:
# edquota -p quotauser `awk -F: '$3 > 999 {print $1}' /etc/passwd`
This applies the settings to users with a UID equal to or greater than 1000.

Wow. Who invented this method? It seems like a dangerous method to me. I suggest to replace this with a 'for' statement, like 'for users in john mike stella; do..' which might be much safer. I think that admins who host more than, say, 100 users, are already aware of these kinds of tricks anyway.
-- Voidzero 17:44, 30 May 2010 (EDT)

I don't think you get the difference. It applies to more than one user in one command, instead of using the normal quota copying tool. And this method is copied from a quota guide linked in Disk Quota#More resources. self 19:19, 30 May 2010 (EDT)