LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automatic User Quotas? (https://www.linuxquestions.org/questions/linux-newbie-8/automatic-user-quotas-27764/)

johnpayback 08-12-2002 11:19 AM

Automatic User Quotas?
 
How can I set the user quotas to be a default value for every new user? When I do a useradd command I need it to automatically set the default user quota that I have defined.
This is a Redhat 7.2 system.

Thanks,

John Payback

donchron 05-21-2003 11:34 AM

Automatic User Quotas + Red Hat 9?
 
I've found plenty of references to manual user quotas, but nothing like you describe. I'd like to do the same thing myself.

It looks like you can do this in linuxconf - per http://howto.lycos.com/lycos/step/1,...+15942,00.html

But I haven't found any other tools to do this (or a linuxconf rpm on the RH9/Shrike cd's).

Any ideas?

trickykid 05-21-2003 12:43 PM

Re: Automatic User Quotas + Red Hat 9?
 
Quote:

Originally posted by donchron
I've found plenty of references to manual user quotas, but nothing like you describe. I'd like to do the same thing myself.

It looks like you can do this in linuxconf - per http://howto.lycos.com/lycos/step/1,...+15942,00.html

But I haven't found any other tools to do this (or a linuxconf rpm on the RH9/Shrike cd's).

linuxconf is unstable and buggy, one reason why its most likely not included and not installed by default no longer by most distro's.

donchron 05-21-2003 01:35 PM

OK. Fair enough. No linuxconf. I played with it for a little while and got rid of it.

Any thoughts on automatic, per-user disk quotas?

unSpawn 05-21-2003 02:44 PM

"man edquota" under option "-p"?

donchron 05-22-2003 01:30 PM

Thanks. That's good. I found this simple script/command at http://www.tldp.org/LDP/solrhe/Secur...1.3/index.html -->

edquota -p wahib `awk -F: '$3 > 499 {print $1}' /etc/passwd`

where wahib is the prototypical user name.

Cheers.

-Don


All times are GMT -5. The time now is 09:09 PM.