]> mj.ucw.cz Git - subauth.git/commitdiff
Debian postinst: chmod 700 /var/lib/subauthd
authorMartin Mares <mj@ucw.cz>
Sun, 19 Nov 2017 14:05:08 +0000 (15:05 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 19 Nov 2017 14:05:08 +0000 (15:05 +0100)
debian/subauth.postinst

index b426a6dcf89cc669ab5f2fb9c054d7c8c9c046d1..b9c2d96c20c1de21787abfc766be3aa6c7805ff3 100644 (file)
@@ -2,7 +2,7 @@
 
 if [ "$1" = configure ] ; then
        if ! getent passwd subauthd >/dev/null ; then
 
 if [ "$1" = configure ] ; then
        if ! getent passwd subauthd >/dev/null ; then
-               adduser --system --group --disabled-login --gecos 'Sub-authentication daemon' subauthd
+               adduser --system --group --disabled-login --home /nonexistent --no-create-home --gecos 'Sub-authentication daemon' subauthd
        fi
        chown subauthd.subauthd /var/lib/subauthd
        chmod 700 /var/lib/subauthd
        fi
        chown subauthd.subauthd /var/lib/subauthd
        chmod 700 /var/lib/subauthd