LinuxCommandLibrary

pam_limits

sets resource limits

TLDR

Enable resource limits

$ session required pam_limits.so
copy
Configure limits
$ echo "* hard nofile 65535" >> /etc/security/limits.conf
copy
User specific limit
$ echo "@admin soft nproc unlimited" >> /etc/security/limits.conf
copy

SYNOPSIS

pam_limits.so [options]

DESCRIPTION

pam_limits sets resource limits. Enforces ulimit values on login.
The module configures process limits. Uses limits.conf for settings.

PARAMETERS

conf=FILE

Alternate config file.
change_uid
Change to user UID first.
utmp_early
Update utmp early.
Configuration in /etc/security/limits.conf.

CAVEATS

Session module. Limits apply at login. Root can override.

HISTORY

pam_limits provides resource limiting to prevent system resource exhaustion.

SEE ALSO

pam(8), limits.conf(5), ulimit(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community