LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Assigning quotas in bash script (http://www.linuxquestions.org/questions/programming-9/assigning-quotas-in-bash-script-720950/)

jax8 04-22-2009 11:52 AM

Assigning quotas in bash script
 
I want to assign quotas to users through a bash script. The problem is that edquota loads an interactive vi session. This is no good for my bash script as I want to do everything automatically.

Any ideas??

colucix 04-22-2009 02:03 PM

Use the setquota command: you can specify hard and soft limits on the command line. Use -u username to set the quota for a specific user.

jax8 04-23-2009 03:30 AM

perfect, thanks

jisjis 04-23-2009 06:13 AM

Quote:

Originally Posted by jax8 (Post 3517439)
I want to assign quotas to users through a bash script. The problem is that edquota loads an interactive vi session. This is no good for my bash script as I want to do everything automatically.

Any ideas??


SETQUOTA - Is your friend !

Linux


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