You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Mobile AD (Active Directory) accounts are not members of the staff user group. On M1 Macs, erase-install performs several additional validation checks (that are not performed on Intel Macs) on the current user's account under the get_user_details function. Line 888 in erase-install validates that the current user is a member of the staff group. When this check fails, it generates error message "account cannot be used to perform reinstallation!" and fails to start the upgrade
The script is run in a Jamf Policy from the uploaded pkg
By running the following command on a test non-admin account named cingalls-test, we see Terminal return the following message "no cingalls-test is NOT a member of staff"
Expected behavior
I expected the current user validation checks to pass successfully on a non-admin mobile AD account and allow the Monterey upgrade to proceed successfully
Code/log output
Error message "account cannot be used to perform reinstallation!"
Screenshots
Attached
Environment (please complete the following information):
OS version: Upgrading from 11.6.1 -> 12.0.1
erase-install version 24.1
Additional context
Upon testing, we discovered mobile AD accounts that have been made administrators are included in the staff user group and do not face this problem. However, in an enterprise environment, the majority of mobile AD accounts are non-admins.
As a workaround, line 888's if statement can be commented out. Bypassing this check allows the rest of the upgrade to proceed successfully on an M1 Mac
The text was updated successfully, but these errors were encountered:
The idea behind this is to determine that a real user is calling the script, i.e. not something like _mbsetupuser, which would not work. But since adding this, I also added the check for Volume Owner, so it's probably superfluous now. I'll try removing it and see if it breaks anyone else's workflow.
Describe the bug
Mobile AD (Active Directory) accounts are not members of the staff user group. On M1 Macs, erase-install performs several additional validation checks (that are not performed on Intel Macs) on the current user's account under the get_user_details function. Line 888 in erase-install validates that the current user is a member of the staff group. When this check fails, it generates error message "account cannot be used to perform reinstallation!" and fails to start the upgrade
To Reproduce
/usr/sbin/dseditgroup -o checkmember -m "cingalls-test" staff
Expected behavior
I expected the current user validation checks to pass successfully on a non-admin mobile AD account and allow the Monterey upgrade to proceed successfully
Code/log output
Error message "account cannot be used to perform reinstallation!"
Screenshots
Attached
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: