kc9wwh / macOSUpgrade

Workflow for doing in-place upgrades.
Other
418 stars 103 forks source link

Possible fix for authenticated reboot #39

Closed smashism closed 6 years ago

smashism commented 6 years ago

Howdy! We've had a case open with Apple for while on the authenticate reboot issue, and got this reply:

Engineering suspects this behavior may be the result of running the startosinstall command as root (or with sudo) rather than the currently logged in admin user.

The authenticated reboot issue might be resolved with a sudo -u $user if the script can grab the current console user. Haven't had a chance to test this myself yet but I've passed this along to someone else on the MacAdmins Slack who confirmed that calling startosinstall as the current user (needs to be admin, at least temporarily) gets the authenticated reboot to work as expected.

Thought I'd pass that along so someone can help validate.

kc9wwh commented 6 years ago

Hi @smashism, yes I've tested this, however when using this method the end-user gets prompted for elevated permissions to install a helper during this process which really isn't great since not all users have admin permissions and plus it pops up behind the jamfHelper window and just sits there :(

kc9wwh commented 6 years ago

Resolved in v2.5