We are receiving an error from one of our scripts chown: admin: illegal user name

jmahabeer
New Contributor II

We are receiving this error from one of our policies that runs during enrollment. I am a little confused as to why we are receiving this error when a local admin is created during pre-stage. Has anyone else experienced this or has found a way to resolve this? 

2 REPLIES 2

sdagley
Esteemed Contributor III

@jmahabeer Have you checked to see if your "admin" account is actually being created before your enrollment process triggers? Apple made some major changes in the Setup Assistant process with macOS 15.4 and it's possible you're running into a side effect of those changes.

howie_isaacks
Valued Contributor III

Are you able to use LAPS? I am referring to the option in Account Settings... "Create a managed local administrator account during macOS Setup Assistant". We began doing this starting in February this year and we stopped using a Jamf policy to install a local admin acccount. Could you post the script you're using and at what point during the enrollment process is it running?