Segmentation Fault: 11 when trying to read custom plist

RadZombie
New Contributor

Hi folks,

Problem we are trying to solve:
There's an app we need to install across our fleet and it requires to know the email address of the individual assigned that Mac. We don't have our Macs bound to a directory and their usernames don't necessarily match the prefix of their email address. The JSS does note the email address of each user that is assigned each Mac under the User and Location JSS entry for the Mac. So to store the email address data locally on each machine we crafted a configuration profile with a Custom Settings payload using a unique Preference Domain and the only key value pair is:

{email=$EMAIL}

Here's the plist file that we used as an example and imported into the JSS for the custom settings:

5065df74cd0d43c99e3dbbc845387004

So what happened in our initial tests is that we can run this:

defaults read /Library/Managed Preferences/PLISTFILE.plist email

and it should output the email address that is attached to the JSS entry for that particular Mac. However, we are finding that half of our fleet or more actually return

Segmentation fault: 11

Any ideas where this went wrong and why this is only affecting part of our fleet? What makes this even more annoying is that if you run that defaults read command 20 or so times, sometimes it will actually provide the proper output.

0 REPLIES 0