Cannot unlock Users & Group in System Preferences
That fix is actually simpler than you might think, though it does call for a reboot, two if you want to be technical.


Reboot your Mac while holding CommandR This will boot you into recovery mode.
From the Utilities menu select Terminal
type resetpassword and press Enter
The password reset utility will launch. Follow the prompts to reset your password.