pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/user_darwin In at least macOS Sierra (and per...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/93069343e900
branches:  trunk
changeset: 357241:93069343e900
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Jan 16 19:55:39 2017 +0000

description:
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:

 sysutils/user_darwin/Makefile         |  4 ++--
 sysutils/user_darwin/files/useradd.sh |  1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r a0959b9bd2fa -r 93069343e900 sysutils/user_darwin/Makefile
--- a/sysutils/user_darwin/Makefile     Mon Jan 16 17:26:47 2017 +0000
+++ b/sysutils/user_darwin/Makefile     Mon Jan 16 19:55:39 2017 +0000
@@ -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 -r a0959b9bd2fa -r 93069343e900 sysutils/user_darwin/files/useradd.sh
--- a/sysutils/user_darwin/files/useradd.sh     Mon Jan 16 17:26:47 2017 +0000
+++ b/sysutils/user_darwin/files/useradd.sh     Mon Jan 16 19:55:39 2017 +0000
@@ -98,6 +98,7 @@
     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 &&                     \



Home | Main Index | Thread Index | Old Index