summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorschmonz <schmonz>2017-01-16 19:55:39 +0000
committerschmonz <schmonz>2017-01-16 19:55:39 +0000
commit02a67b751aec14e8e54692ba0e8da3f8b852a89c (patch)
treeb55c800590ec506b5968eaf5999470953388b2ef /sysutils
parent9f2177ecb467353578f5bf0636f3c6236208d22a (diff)
downloadpkgsrc-02a67b751aec14e8e54692ba0e8da3f8b852a89c.tar.gz
In at least macOS Sierra (and perhaps earlier OS X versions), we need to
set "IsHidden" on new accounts to prevent them from showing up in the Users & Groups Preference Pane the way normal interactive users would. This change is probably backward-compatible all the way back to Tiger (it doesn't break Tiger, sevan@ checked). Bump version.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/user_darwin/Makefile4
-rwxr-xr-xsysutils/user_darwin/files/useradd.sh1
2 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/user_darwin/Makefile b/sysutils/user_darwin/Makefile
index e50890f05ff..a1048e23210 100644
--- a/sysutils/user_darwin/Makefile
+++ b/sysutils/user_darwin/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.15 2015/10/29 12:29:04 jperkin Exp $
+# $NetBSD: Makefile,v 1.16 2017/01/16 19:55:39 schmonz Exp $
#
-DISTNAME= user-darwin-20151029
+DISTNAME= user-darwin-20170116
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/sysutils/user_darwin/files/useradd.sh b/sysutils/user_darwin/files/useradd.sh
index b7a9a0aff54..a2eb533938a 100755
--- a/sysutils/user_darwin/files/useradd.sh
+++ b/sysutils/user_darwin/files/useradd.sh
@@ -98,6 +98,7 @@ else
dscl . -create /users/$user Comment "$comment"
dscl . -delete /users/$user AuthenticationAuthority
dscl . -create /users/$user Password '*'
+ dscl . -create /users/$user IsHidden 1
fi
if ! nireport . /users/uid=$uid uid 2>/dev/null && \