Talk:Disk quota

From ArchWiki
Revision as of 21:44, 30 May 2010 by Voidzero (talk | contribs)
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)