EDQUOTA(8)

๐Ÿ’– EDQUOTA(8) ๐Ÿ’–

okay so bestie, welcome to the edquota(8) page โ€” that's the System Manager's Manual one, and yes it's literally the quota editor. Buckle up, this one slaps. ๐ŸŽ€


โœจ NAME โœจ

edquota โ€” edit user quotas ๐ŸŒธ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

edquota [ -p protoname ] [ -u | -g | -P ] [ -rm ] [ -F format-name ] [ -f filesystem ] username | groupname | projectname...
edquota [ -u | -g | -P ] [ -F format-name ] [ -f filesystem ] -t
edquota [ -u | -g | -P ] [ -F format-name ] [ -f filesystem ] -T username | groupname | projectname...

๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

So edquota is a quota editor, periodt. You can drop one or more users, groups, or projects on the command line. And listen โ€” if you give a number instead of a user/group/project name, it gets treated as an UID/GID/Project ID. iykyk. ๐Ÿซถ

For each user, group, or project it makes a temporary file with an ASCII representation of that user/group/project's current disk quotas, and then it invokes an editor on that file. Then you can modify the quotas, add new quotas, whatever you want. Setting a quota to zero means no quota should be imposed โ€” that's the vibe. โœจ

Block usage and limits are reported and interpreted as multiples of kibibyte (1024 bytes) blocks by default. And the symbols K, M, G, and T can be appended to a numeric value to express kibibytes, mebibytes, gibibytes, and tebibytes. Cute, right? ๐Ÿ’…

Inode usage and limits are interpreted literally though. The symbols k, m, g, and t can be appended to a numeric value to express multiples of 10^3, 10^6, 10^9, and 10^12 inodes. (lowercase vs uppercase, don't mix them up bestie, that's the whole plot twist ๐Ÿ“)

Users are permitted to exceed their soft limits for a grace period that may be specified per filesystem. Once the grace period has expired, the soft limit is enforced as a hard limit. ๐Ÿ˜ญ

The current usage information in the file is for informational purposes โ€” only the hard and soft limits can be changed. Don't even try it. ๐Ÿ™ˆ

Upon leaving the editor, edquota reads the temporary file and modifies the binary quota files to reflect the changes made. That's the glow-up. โœจ

The editor invoked is vi(1) unless either the EDITOR or the VISUAL environment variable specifies otherwise. ๐Ÿ‘‘

Only the super-user may edit quotas. Sorry babe, that's the rule. ๐Ÿ’€

๐Ÿ’… OPTIONS ๐Ÿ’…

  • -r, --remote โ€” Edit also non-local quota use rpc.rquotad on remote server to set quota. This option is available only if quota tools were compiled with enabled support for setting quotas over RPC. The -n option is equivalent, and is maintained for backward compatibility. ๐ŸŒˆ
  • -m, --no-mixed-pathnames โ€” Currently, pathnames of NFSv4 mountpoints are sent without leading slash in the path. rpc.rquotad uses this to recognize NFSv4 mounts and properly prepend pseudoroot of NFS filesystem to the path. If you specify this option, edquota will always send paths with a leading slash. This can be useful for legacy reasons but be aware that quota over RPC will stop working if you are using new rpc.rquotad. ๐Ÿ’€
  • -u, --user โ€” Edit the user quota. This is the default. ๐Ÿ’–
  • -g, --group โ€” Edit the group quota. ๐ŸŒธ
  • -P, --project โ€” Edit the project quota. ๐Ÿฆ‹
  • -p, --prototype=protoname โ€” Duplicate the quotas of the prototypical user specified for each user specified. This is the normal mechanism used to initialize quotas for groups of users. ๐Ÿ‘ฏ
  • --always-resolve โ€” Always try to translate user / group name to uid / gid even if the name is composed of digits only. ๐Ÿ”
  • -F, --format=format-name โ€” Edit quota for specified format (ie. don't perform format autodetection). Possible format names are: vfsold Original quota format with 16-bit UIDs / GIDs, vfsv0 Quota format with 32-bit UIDs / GIDs, 64-bit space usage, 32-bit inode usage and limits, vfsv1 Quota format with 64-bit quota limits and usage, rpc (quota over NFS), xfs (quota on XFS filesystem). โญ
  • -f, --filesystem filesystem โ€” Perform specified operations only for given filesystem (default is to perform operations for all filesystems with quota). ๐ŸŽฏ
  • -t, --edit-period โ€” Edit the soft time limits for each filesystem. In old quota format if the time limits are zero, the default time limits in <linux/quota.h> are used. In new quota format time limits must be specified (there is no default value set in kernel). Time units of 'seconds', 'minutes', 'hours', and 'days' are understood. Time limits are printed in the greatest possible time unit such that the value is greater than or equal to one. โฐ
  • -T, --edit-times โ€” Edit time for the user/group/project when softlimit is enforced. Possible values are 'unset' or number and unit. Units are the same as in -t option. ๐Ÿ•ฐ๏ธ

๐ŸŽ€ FILES ๐ŸŽ€

  • aquota.user or aquota.group โ€” quota file at the filesystem root (version 2 quota, non-XFS filesystems) ๐ŸŒธ
  • quota.user or quota.group โ€” quota file at the filesystem root (version 1 quota, non-XFS filesystems) ๐Ÿฆ‹
  • /etc/mtab โ€” mounted filesystems table ๐Ÿ“

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

quota(1), vi(1), quotactl(2), quotacheck(8), quotaon(8), repquota(8), setquota(8)


and that's the whole page bestie, you ate that ๐Ÿ’…โœจ

this was the EDQUOTA(8) page from the System Manager's Manual โ€” go forth and edit those quotas, you absolute icon ๐Ÿ‘‘๐Ÿซถ

๐Ÿ“ฆ where this page comes from