Is there any way to automate user`s home folder qouta by script. I have auto useradd script, and i want to add some lines in that script about quota for home folder of size 2Gb. For example:

edquota sally

    Disk quotas for user sally (uid 1045):
  Filesystem                   blocks       soft       hard     inodes     soft     hard

  /dev/loop0                       16       0           0          4        0        0

how to make command edqouta change value of hard limit from 0 to 2037760 by script? in other words how to modiffy edquota sally to automatically change value.

link|improve this question
feedback

1 Answer

OK, it looks like you did man edquota :-)

It looks like all you need to do is append some text into the quota files: i.e.

echo 'text' >> /quota.user

For example in OpenBSD, you would use:

FILES
 quota.user   at the filesystem root with user quotas
 quota.group  at the filesystem root with group quotas
 /etc/fstab   to find filesystem names and locations
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.