Talk:Disk quota

From ArchWiki
Revision as of 21:41, 30 May 2010 by Voidzero (Talk | contribs) (Created page with ':''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 setting…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.