Skip to main content
Question

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

  • May 5, 2025
  • 2 replies
  • 13 views

Forum|alt.badge.img+3

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

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • May 6, 2025

@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
Forum|alt.badge.img+23
  • Esteemed Contributor
  • May 6, 2025

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?