Installation guide
9.3.4.2 Setting File System Quotas for User Accounts
To set a disk quota for a user, you can create a quota prototype or you can
use an existing quota prototype and replicate it for the user. A quota
prototype is an equivalence of an existing user’s quotas to a prototype file,
which is then used to generate identical user quotas for other users. Use
the edquota command to create prototypes. If you do not have a quota
prototype, create one by following these steps:
1. Log in as root and use the edquota command with the following
syntax:
edquota proto-user users
For example, to set up a quota prototype named large for user eddie,
enter the following command:
# edquota large eddie
The program creates the large quota prototype for user eddie.You
must use a real login name for the
users
argument.
2. Edit the quota file opened by the edquota program to set quotas for
each file system that user eddie can access.
To use an existing quota prototype for a user:
1. Enter the edquota command with the following syntax:
edquota −p proto-user users
For example, to set a disk quota for marcy, using the large prototype,
enter:
# edquota -p large marcy
2. Confirm that the quotas are what you want to set for user marcy.If
not, edit the quota file and set new quotas for each file system that
user marcy can access.
Refer to quota
(1) and edquota(8) for more information.
9.4 Removing a User Account
To remove a user’s account, you must remove all the files and directories
from the account and rename the user’s entry for the group and passwd
files. You can rename an account manually or by using the removeuser
utility.
Administering User Accounts and Groups 9–17