Find the answer to your Linux question:
Results 1 to 2 of 2
I want to be able to run a bash script that will add user quotas to a specified user. I am currently using webmin to manage my quotas but would ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Posts
    4

    Quota Bash Script

    I want to be able to run a bash script that will add user quotas to a specified user. I am currently using webmin to manage my quotas but would like to remove this dependency. When I add a user that I want to use a quota for, I add them through webmin and webmin sets it up automagically. I can write a script myself for adding a user and such but the way we edit quotas (edquota user) is weird and I do not know how to change it from a bash script.

    For instance: I will run a script that will add a user AND give them a soft limit of 90MB and hard of 100MB.

    Is there a simple program/command that I am missing that will do this for me? Is anybody able to help? Thanks

  2. #2
    Linux User
    Join Date
    Jun 2007
    Posts
    318
    I've never used the command myself but it looks like the command 'setquota' is the one you're looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...