How to Reset Admin Password on macOS if you Forgot Administrator Password
Launch System Preferences by clicking its Dock icon, or by selecting System Preferences from the Apple menu. In the System Preferences window, open the Users & Groups preference pane. Click the padlock icon in the lower left corner, and then enter your administrator password. Click the Unlock button.