]> andersk Git - nss_nonlocal.git/blobdiff - debian/libnss-nonlocal.preinst
Create magic ‘nss-nonlocal-users’ user
[nss_nonlocal.git] / debian / libnss-nonlocal.preinst
index 4cb573388f063b1b466cc53c3fd7cb8d91f96527..d1815fa74e1c452256e9e5339d245bf8da845974 100644 (file)
@@ -16,6 +16,11 @@ set -e
 
 case "$1" in
     install|upgrade)
+       if ! getent passwd nss-nonlocal-users >/dev/null; then
+           adduser --system --no-create-home --home /nonexistent \
+               --gecos 'Magic user for local group whitelist' \
+               nss-nonlocal-users
+       fi
        if ! getent group nss-local-users >/dev/null; then
            addgroup --system nss-local-users
        fi
This page took 0.027006 seconds and 4 git commands to generate.