-1

I know that

Setting a quota to zero indicates that no quota should be imposed.

So, how can I set a quota to zero, meaning the user/group is not allowed to write in that partition?

ekad
  • 14,436
  • 26
  • 44
  • 46
morais
  • 161
  • 1
  • 1
  • 9

1 Answers1

1

I found one solution in edquota manual page, your answer is the second one.

  • Setting a quota to zero indicates that no quota should be imposed
  • Setting a hard limit to one indicates that no allocations should be permitted.
  • Setting a soft limit to one with a hard limit of zero indicates that allocations should be permitted only on a temporary basis

I hope this will work.

Fattaneh Talebi
  • 727
  • 1
  • 16
  • 42
  • For sizes, it works. I can't do a chgrp to a "forbidden" group if the file size is non-zero. But the "no allocations" rule does not apply to inodes: I can still create one empty file or directory owned by a "forbidden" group. – morais Jul 07 '15 at 18:13
  • @morais I haven't found any othe answers, hope you find – Fattaneh Talebi Jul 09 '15 at 09:47