diff options
author | schmonz <schmonz@pkgsrc.org> | 2017-01-16 19:55:39 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2017-01-16 19:55:39 +0000 |
commit | e1679f10b18b6960b263c5b1da1275163fe14e67 (patch) | |
tree | 78af0864d452e8ad8e04324e51e183dc439cf1dc | |
parent | 6b6549d486452499e8afd87f64129b02c4233b1f (diff) | |
download | pkgsrc-e1679f10b18b6960b263c5b1da1275163fe14e67.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.
-rw-r--r-- | sysutils/user_darwin/Makefile | 4 | ||||
-rwxr-xr-x | sysutils/user_darwin/files/useradd.sh | 1 |
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 && \ |