Difference between revisions of "Talk:Disk quota"

From ArchWiki
Jump to: navigation, search
(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…')
 
m
Line 2: Line 2:
 
: # ''edquota -p '''quotauser''' `awk -F: '$3 > 999 {print $1}' /etc/passwd`''
 
: # ''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.''
 
: ''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.
+
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.<br/>
 +
-- [[User:Voidzero|Voidzero]] 17:44, 30 May 2010 (EDT)

Revision as of 21:44, 30 May 2010

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)