It seems like you're in a root shell within the Terminal. The "bash-3.2#" prompt indicates you're in a root or superuser shell. To reset the admin password, try the following steps:
1. **Resetting Admin Password in Single-User Mode:**
- Restart your Mac and hold down Command + S while it's booting to enter Single-User Mode.
- Wait until you see a black screen with white text.
- Once you're at the command line (it will say something similar to "localhost root#"), type:
```
/sbin/mount -uw /
```
Then press Enter.
- Next, type:
```
launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist
```
Then press Enter.
- Now, type:
```
passwd [username]
```
Replace "[username]" with the username of the account you want to reset the password for. Press Enter.
- Follow the prompts to enter and confirm a new password. You might not see characters appearing on the screen as you type. After entering the new password, press Enter.
- Restart your Mac by typing:
```
reboot
```
Then press Enter.
2. **Exiting the Root Shell in Terminal:**
- If you're still stuck in the root shell in Terminal, you can exit by typing:
```
exit
```
Then press Enter. This should return you to your normal command prompt.
These steps should help reset the admin password and exit the root shell in Terminal. If you're still experiencing difficulties, consider reaching out to Apple Support or consulting with a professional to ensure the correct steps for your specific situation.