From macOS Recovery, you can access a hidden a password reset tool and use it to change any user account’s password on the Mac. To launch the tool, open the Terminal by clicking Utilities > Terminal in the menu bar. HI John and Welcome to Apple Discussions. Yes, you must provide your admin password to install software. The reasoning behind this is security. If there's a way around this I'm not sure what it is. Perhaps a Terminal (UNIX commands) guru can help you with that. Take time to learn the Mac OS X.
Click the Utilities tab in the top menu bar, select Terminal, type resetpassword and press Enter. Close out the Terminal window and behind it you will find the Reset Password utility. All you have to do now is select the user account you want to reset, enter a new password or leave it blank and click Save. Then just simply restart the computer from the Apple menu and login with your new password. It's as easy as that. This method is very useful if you ever forget your password or if you need to get into a child's password protected computer.
It can also be used, however, for malicious purposes. Here's how you can.