tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Stop pkgsrc users from appearing in the OSX login window
On 15 October 2015 at 12:09, Jonathan Perkin <jperkin%joyent.com@localhost> wrote:
> For a while $SUBJECT has bothered me, so recently I fixed it for our
> 2015Q3 packages using this diff (nabbed from a StackOverflow post):
>
> --- a/sysutils/user_darwin/files/useradd.sh
> +++ b/sysutils/user_darwin/files/useradd.sh
> @@ -99,2 +99,3 @@ else
> dscl . -create /users/$user Password '*'
> + dscl . -delete /users/$user AuthenticationAuthority
> fi
>
> Anyone have a reason I shouldn't commit this?
No objection here.
The key is used on older versions of OS X but It doesn't appear to be
set on the users created by pkgsrc there, issuing a delete for a key
which doesn't exist doesn't appear to generate an error.
Tested it manually from dscl(1) on Tiger
> read Users/uircd AuthenticationAuthority
read: Invalid Path
> delete Users/uircd AuthenticationAuthority
> read Users/uircd AuthenticationAuthority
No such key: AuthenticationAuthority
Sevan / Venture37
Home |
Main Index |
Thread Index |
Old Index