diff options
author | Tomas Mraz <tm@t8m.info> | 2010-12-14 08:40:40 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2010-12-14 08:40:40 +0000 |
commit | 19eb6b29412491d272210938259c574bf9728d94 (patch) | |
tree | e58628d1740c60740446f2907b4df140cea917d2 /modules/pam_limits/limits.conf.5.xml | |
parent | da7baa3cd89c1ef0afc99c65e8ebdb0b68a68563 (diff) | |
download | pam-19eb6b29412491d272210938259c574bf9728d94.tar.gz pam-19eb6b29412491d272210938259c574bf9728d94.tar.bz2 pam-19eb6b29412491d272210938259c574bf9728d94.zip |
Relevant BUGIDs:
Purpose of commit: new feature
Commit summary:
---------------
2010-12-14 Tomas Mraz <tm@t8m.info>
* modules/pam_limits/pam_limits.c (parse_uid_range): New function
to parse the range of uids or gids.
(parse_config_file): Call parse_uid_range() and if uid/gid range
is identified, setup the limits if the range matches. New parameters
containing user's uid and primary gid.
(pam_sm_open_session): Pass the user's uid and primary gid to
parse_config_file().
* modules/pam_limits/limits.conf.5.xml: Document the uid/gid ranges.
Diffstat (limited to 'modules/pam_limits/limits.conf.5.xml')
-rw-r--r-- | modules/pam_limits/limits.conf.5.xml | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/modules/pam_limits/limits.conf.5.xml b/modules/pam_limits/limits.conf.5.xml index e9174bc1..a1e84102 100644 --- a/modules/pam_limits/limits.conf.5.xml +++ b/modules/pam_limits/limits.conf.5.xml @@ -60,6 +60,33 @@ number of logins of all users that are member of the group. </para> </listitem> + <listitem> + <para> + an uid range specified as <replaceable><min_uid></replaceable><emphasis + remap='B'>:</emphasis><replaceable><max_uid></replaceable>. If min_uid + is omitted, the match is exact for the max_uid. If max_uid is omitted, all + uids greater than or equal min_uid match. + </para> + </listitem> + <listitem> + <para> + a gid range specified as <emphasis + remap='B'>@</emphasis><replaceable><min_gid></replaceable><emphasis + remap='B'>:</emphasis><replaceable><max_gid></replaceable>. If min_gid + is omitted, the match is exact for the max_gid. If max_gid is omitted, all + gids greater than or equal min_gid match. For the exact match all groups including + the user's supplementary groups are examined. For the range matches only + the user's primary group is examined. + </para> + </listitem> + <listitem> + <para> + a gid specified as <emphasis + remap='B'>%:</emphasis><replaceable><gid></replaceable> applicable + to maxlogins limit only. It limits the total number of logins of all users + that are member of the group with the specified gid. + </para> + </listitem> </itemizedlist> </listitem> </varlistentry> @@ -276,12 +303,15 @@ </para> <programlisting> * soft core 0 -* hard rss 10000 +* hard nofile 512 @student hard nproc 20 @faculty soft nproc 20 @faculty hard nproc 50 ftp hard nproc 0 @student - maxlogins 4 +:123 hard cpu 5000 +@500: soft cpu 10000 +600:700 hard locks 10 </programlisting> </refsect1> |