be the end of the UID range the policy is applied to. Setting enduid=0 results in an open-ended UID range (i.e. all uids greater than `startuid` are included). (Defaults to 0)
bsoftlimit=19000

  Soft limit for disk quota blocks, as defined by quotactl(2). Note: `bsoftlimit` and `bhardlimit` must be set at the same time!

bhardlimit=20000

  Hard limit for disk quota blocks, as defined by quotactl(2). Note: `bsoftlimit` and `bhardlimit` must be set at the same time!

isoftlimit=3000

  Soft limit for inodes, as defined by quotactl(2). Note: `isoftlimit` and `ihardlimit` must be set at the same time!

ihardlimit=4000

  Hard limit for inodes, as defined by quotactl(2). Note: `isoftlimit` and `ihardlimit` must be set at the same time!

### 6.32.3. MODULE TYPES PROVIDED

Only the `session` module type is provided.

### 6.32.4. RETURN VALUES

PAM_SUCCESS

  The quota was set successfully.

PAM_IGNORE

  No action was taken because either the UID of the user was outside of the specified range, a quota already existed and `overwrite=1` was not configured or no limits were configured at all.

PAM_USER_UNKNOWN

  The user was not found.

PAM_PERM_DENIED

  `/proc/mounts` could not be opened.

  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.

### 6.32.5. EXAMPLES

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

### 6.32.6. AUTHOR

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>.

Prev | Up | Next
6.31. pam_sepermit - allow/reject access based on SELinux mode | Home | 6.33. pam_shells - check for valid login shell