How to Find Admin Password on Mac With Terminal

Charlotte Daniels

Mac, Tutorials

Are you looking for a way to find the admin password on your Mac? Well, look no further!

In this tutorial, we will guide you through the process of finding the admin password using Terminal. Terminal is a powerful tool that allows you to interact with your Mac’s operating system through command-line commands.

Step 1: Open Terminal

To begin, open Terminal on your Mac. You can do this by searching for “Terminal” in Spotlight or by navigating to Applications > Utilities > Terminal.

Step 2: Access the Password File

Once you have Terminal open, you need to access the password file. Type the following command and press Enter:

sudo cat /etc/passwd

This command will prompt you to enter your admin password. Make sure you have administrative privileges on your Mac before proceeding.

Step 3: Find Your Admin Account

The output of the previous command will display a list of user accounts on your Mac. Look for the line that corresponds to your admin account. The line will look something like this:

admin:*:501:501::0:0:System Administrator:/var/root:/bin/sh

In this example, “admin” is the username of the admin account.

Step 4: Extract the Admin Password Hash

Now that you have located your admin account, it’s time to extract the password hash. Type the following command and press Enter:

dscl . -read /Users/admin AuthenticationAuthority | grep -A 1 “Password”

This command will display the password hash associated with your admin account.


Keep in mind that the password hash is not the actual password. It is a cryptographic representation of the password stored in a secure format.

Step 5: Decrypt the Password Hash

If you want to decrypt the password hash and view the actual admin password, you can use tools like John the Ripper or Hashcat. However, these tools are beyond the scope of this tutorial.


By following these steps, you can find the admin password on your Mac using Terminal. Remember to handle this information responsibly and use it only for authorized purposes. Terminal is a powerful tool, but it should be used with caution.

Note: Modifying or attempting to crack passwords without proper authorization is illegal and unethical.

Disclaimer: This tutorial is for educational purposes only. We do not encourage or endorse any illegal activities.

Android - iPhone - Mac

 © 2023 UI-Transitions

Privacy Policy