1PAM_LIMITS(8) Linux-PAM Manual PAM_LIMITS(8)
2
3
4
6 pam_limits - PAM module to limit resources
7
9 pam_limits.so [change_uid] [conf=/path/to/limits.conf] [debug]
10 [utmp_early]
11
13 The pam_limits PAM module sets limits on the system resources that can
14 be obtained in a user-session. Users of uid=0 are affected by this
15 limits, too.
16
17 By default limits are taken from the /etc/security/limits.conf config
18 file.
19
21 change_uid
22 Change real uid to the user for who the limits are set up. Use this
23 option if you have problems like login not forking a shell for user
24 who has no processes. Be warned that something else may break when
25 you do this.
26
27 conf=/path/to/limits.conf
28 Indicate an alternative limits.conf style configuration file to
29 override the default.
30
31 debug
32 Print debug information.
33
34 utmp_early
35 Some broken applications actually allocate a utmp entry for the user
36 before the user is admitted to the system. If some of the services
37 you are configuring PAM for do this, you can selectively use this
38 module argument to compensate for this behavior and at the same time
39 maintain system-wide consistency with a single limits.conf file.
40
42 Only the session service is supported.
43
45 PAM_ABORT
46 Cannot get current limits.
47
48 PAM_IGNORE
49 No limits found for this user.
50
51 PAM_PERM_DENIED
52 New limits could not be set.
53
54 PAM_SERVICE_ERR
55 Cannot read config file.
56
57 PAM_SESSEION_ERR
58 Error recovering account name.
59
60 PAM_SUCCESS
61 Limits were changed.
62
63 PAM_USER_UNKNOWN
64 The user is not known to the system.
65
67 /etc/security/limits.conf
68 Default configuration file
69
71 For the services you need resources limits (login for example) put a
72 the following line in /etc/pam.d/login as the last line for that
73 service (usually after the pam_unix session line):
74
75 #%PAM-1.0
76 #
77 # Resource limits imposed on login sessions via pam_limits
78 #
79 session required pam_limits.so
80
81
82 Replace "login" for each service you are using this module.
83
85 limits.conf(5), pam.d(8), pam(8).
86
88 pam_limits was initially written by Cristian Gafton <gafton@redhat.com>
89
90
91
92Linux-PAM Manual 06/17/2006 PAM_LIMITS(8)