PAM_SETQUOTA(8) | Linux-PAM Manual | PAM_SETQUOTA(8) |
pam_setquota - PAM module to set or modify disk quotas on session start
pam_setquota.so [fs=/home] [overwrite=0] [debug=0] [startuid=1000] [enduid=0] [bsoftlimit=19000] [bhardlimit=20000] [isoftlimit=3000] [ihardlimit=4000]
pam_setquota is a PAM module to set or modify a disk quota at session start
This makes quotas usable with central user databases, such as MySQL or LDAP.
fs=/home
overwrite=0
debug=0
startuid=1000
enduid=0
bsoftlimit=19000
bhardlimit=20000
isoftlimit=3000
ihardlimit=4000
Only the session module type is provided.
PAM_SUCCESS
PAM_IGNORE
PAM_USER_UNKNOWN
PAM_PERM_DENIED
The filesystem or device specified was not found.
The limits for the user could not be retrieved. See syslog for more information.
The limits for the user could not be set. See syslog for more information.
Either isoftlimit/ihardlimit or bsoftlimit/bhardlimit were not set at the same time.
A single invocation of `pam_setquota` applies a specific policy to a UID range. Applying different policies to specific UID ranges is done by invoking pam_setquota more than once. The last matching entry defines the resulting quota.
session required pam_setquota.so bsoftlimit=1000 bhardlimit=2000 isoftlimit=1000 ihardlimit=2000 startuid=1000 enduid=0 fs=/home
session required pam_setquota.so bsoftlimit=19000 bhardlimit=20000 isoftlimit=3000 ihardlimit=4000 startuid=2001 enduid=3000 fs=/dev/sda1
session required pam_setquota.so bsoftlimit=19000 bhardlimit=20000 isoftlimit=3000 ihardlimit=4000 startuid=3001 enduid=4000 fs=/dev/sda1 overwrite=1
pam_setquota was originally written by Ruslan Savchenko <savrus@mexmat.net>.
Further modifications were made by Shane Tzen <shane@ict.usc.edu>, Sven Hartge <sven@svenhartge.de> and Keller Fuchs <kellerfuchs@hashbang.sh>.
09/03/2021 | Linux-PAM Manual |