Skip to main content
Solved

Softwareupdate is trying to authenticate user - Authentication is disabled


Did this topic help you find an answer to your question?
Show first post

28 replies

red_beard
Forum|alt.badge.img+8
  • Contributor
  • 48 replies
  • November 26, 2024

Writing to say, just experienced this issue running Sequoia 15.2 Beta 3 on an M1 Max MacBook Pro and MacBook Pro M2 running Sonoma 14.2  A small portion of our fleet is still bound. Thankfully most of them are not.

@bwoods script worked great and I utilized Self Service to make it available when our techs need to help other end users. 


Forum|alt.badge.img+5
  • Contributor
  • 10 replies
  • April 2, 2025
bwoods wrote:

Added some osascript to prompt for creds.

#!/bin/bash username=$(osascript -e 'Tell application "System Events" to display dialog "Enter user username:" default answer ""' -e 'text returned of result' 2>/dev/null) password=$(osascript -e 'Tell application "System Events" to display dialog "Enter user password:" with hidden answer default answer ""' -e 'text returned of result' 2>/dev/null) adminUser=$(osascript -e 'Tell application "System Events" to display dialog "Enter admin username:" default answer ""' -e 'text returned of result' 2>/dev/null) adminPassword=$(osascript -e 'Tell application "System Events" to display dialog "Enter admin password:" with hidden answer default answer ""' -e 'text returned of result' 2>/dev/null) #Check if your account has securetoken enabled, (it probably does) # Disable it then reenable it. sysadminctl -secureTokenStatus "$username" sysadminctl -secureTokenOff "$username" -password "$password" -adminUser "$adminUser" -adminPassword "$adminPassword" sysadminctl -secureTokenOn "$username" -password "$password" -adminUser "$adminUser" -adminPassword "$adminPassword" diskutil apfs UpdatePreboot / sysadminctl -secureTokenStatus "$username" exit 0 ## Success exit 1 ## Failure

This worked for me in the past, but today the script worked, but the problem persisted. Has anyone run into that issue? 


Forum|alt.badge.img
  • New Contributor
  • 1 reply
  • April 16, 2025
RJ52 wrote:

This worked for me in the past, but today the script worked, but the problem persisted. Has anyone run into that issue? 


RJ52 and others who this may help: I found that using the interactive switch in the script below is what works on macOS Sequoia in our environment to fix Secure Token for a user. After running script below and signing back in as user, they are able to run macOS updates with no Touch ID errors.

Log in as admin and launch Terminal.

sudo sysadminctl -secureTokenOff <username> -password password interactive

Password prompt in Terminal: input admin password

Pop up authentication window: input admin password

sudo sysadminctl -secureTokenOn <username> -password password interactive

Pop up authentication window: input admin password

diskutil apfs UpdatePreboot /

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings