I logged on to a Wi-Fi network on my friend's computer and they forgot their admin password. They want me to find out the password, but I can't get into the keychain. But I am still connected to the network, that they want to connect to on another computer. I heard there was a way to do it in the terminal but I can't find it. What is the command line? All i know is that there is a command line in terminal that allows you to view the password of the wifi network you are currently connected to. Thanks in advance.

  • 1
    So you do not have your computer's password nor the wifi password? Feb 11, 2015 at 3:45
  • what "other" device you are trying to connect to?
    – Ruskes
    Feb 11, 2015 at 4:09
  • The admin password for a router and the password to connect to a wifi network are not the same thing. It's also unclear if you mean the computer's admin password or the router's. If you want to know how to view the connection password to a network you have previously connected to, the second link that Bart posted above provides an answer to that. You will, however, need an administrator's login for the Mac to do so. Resetting the admin password for the router is outside the scope of this site.
    – tubedogg
    Feb 13, 2015 at 0:40
  • Who are "they" ? Feb 13, 2015 at 5:52

1 Answer 1


You can view your own keychain via the /Applications/Utilities/Keychain Access.app

None of this is possible without an admin password.

The command line is accessible via /Applications/Utilities/Terminal.app

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .