From 6ca16423b9b7ddcb37b86eac892e58e73ce7a14c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 9 Mar 2011 02:28:20 -0500 Subject: [PATCH] Document nss-nonlocal-users and nss-local-users Signed-off-by: Anders Kaseorg --- README | 9 +++++++++ nonlocal-group.c | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/README b/README index 1e0d6b2..47067fb 100644 --- a/README +++ b/README @@ -9,6 +9,15 @@ passwd_nonlocal: hesiod group: compat nonlocal group_nonlocal: hesiod +The module also assigns special properties to two local groups, if +they exist: + +• If the local group ‘nss-nonlocal-users’ exists, then nonlocal users + will be automatically added to it. + +• If the local group ‘nss-local-users’ exists, then local users will + be automatically added to it. + Copyright © 2007–2010 Anders Kaseorg and Tim Abbott diff --git a/nonlocal-group.c b/nonlocal-group.c index 97ce4a6..e93a3a2 100644 --- a/nonlocal-group.c +++ b/nonlocal-group.c @@ -38,7 +38,16 @@ #include "nsswitch-internal.h" #include "nonlocal.h" +/* + * If the MAGIC_NONLOCAL_GROUPNAME local group exists, then nonlocal + * users will be automatically added to it. + */ #define MAGIC_NONLOCAL_GROUPNAME "nss-nonlocal-users" + +/* + * If the MAGIC_LOCAL_GROUPNAME local group exists, then local users + * will be automatically added to it. + */ #define MAGIC_LOCAL_GROUPNAME "nss-local-users" -- 2.44.0