2016-10-13 07:48:16 +01:00
|
|
|
# edquota
|
|
|
|
|
2020-10-03 15:38:06 +01:00
|
|
|
> Edit quotas for a user or group. By default it operates on all filesystems with quotas.
|
2016-10-16 14:57:23 +01:00
|
|
|
> Quota information is stored permanently in the `quota.user` and `quota.group` files in the root of the filesystem.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/edquota>.
|
2016-10-13 07:48:16 +01:00
|
|
|
|
2016-10-16 14:57:23 +01:00
|
|
|
- Edit quota of the current user:
|
2016-10-13 07:48:16 +01:00
|
|
|
|
2016-10-16 14:57:23 +01:00
|
|
|
`edquota --user $(whoami)`
|
2016-10-13 07:48:16 +01:00
|
|
|
|
2016-10-16 14:57:23 +01:00
|
|
|
- Edit quota of a specific user:
|
2016-10-13 07:48:16 +01:00
|
|
|
|
2016-10-16 14:57:23 +01:00
|
|
|
`sudo edquota --user {{username}}`
|
2016-10-13 07:48:16 +01:00
|
|
|
|
2016-10-16 14:57:23 +01:00
|
|
|
- Edit quota for a group:
|
2016-10-13 07:48:16 +01:00
|
|
|
|
|
|
|
`sudo edquota --group {{group}}`
|
|
|
|
|
2016-10-16 14:57:23 +01:00
|
|
|
- Restrict operations to a given filesystem (by default edquota operates on all filesystems with quotas):
|
2016-10-13 07:48:16 +01:00
|
|
|
|
|
|
|
`sudo edquota --file-system {{filesystem}}`
|
|
|
|
|
|
|
|
- Edit the default grace period:
|
|
|
|
|
|
|
|
`sudo edquota -t`
|
|
|
|
|
|
|
|
- Duplicate a quota to other users:
|
|
|
|
|
|
|
|
`sudo edquota -p {{reference_user}} {{destination_user1}} {{destination_user2}}`
|