View Keychain Passwords via Terminal

Discussion in 'macOS' started by MrCheeto, May 27, 2011.

  1. MrCheeto macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #1
    I need to view another user's Keychain via Terminal

    I'm unable to log into the other user account on my mac, but I just need a single Safari password in that account's Keychain.

    How do I access their Keychain data from my main user?

    It's my mac, nobody else's profiles are on here, no worries :p

    So how do I access it

    or

    How do I switch users via Terminal?
     
  2. ezramoore macrumors 6502a

    Joined:
    Mar 20, 2006
    Location:
    Washington State
    #2
    AFAIK you need to know the user's keychain password to access anything contained within the keychain.
     
  3. MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
  4. Beaverman3001 macrumors 6502

    Joined:
    May 20, 2010
    #4
    The guest account has the home directory deleted every time it is logged out. It isn't meant to be an account to store anything.
     
  5. MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #5
    But it hasn't been logged out!

    It just disappeared from the login window! It's still running as it says Safari is open via Guest in the Activity Monitor!

    I need to get into Guest!
     
  6. ezramoore macrumors 6502a

    Joined:
    Mar 20, 2006
    Location:
    Washington State
    #6
    I feel like we aren't getting the whole story here.

    What exactly are you trying to do?

    and

    What exactly is the situation?
     
  7. MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #7
    Can't say. I have data on a website that will allow me to make a purchase sooner that will allow me to go home sooner.

    I was in the Guest Account the whole time and it has not been logged out.

    I was using the Guest Account to enter the information. I click "remember me" and it saved the login info of that website.

    Somebody claims they tried to create a password for Guest...I know, anyway when I got my computer back, I went to the login window, and no Guest.

    When I check activity monitor, I see processes running under Guest, including Safari. When I "w" in Terminal it lists Guest as a user.

    It simply isn't appearing in the login window! Here's something even stranger:

    [​IMG]

    How is it logged in, yet sharing only???

    Is there a way I can change it to "Allow Guests to log into this computer" using Terminal???
     
  8. ezramoore macrumors 6502a

    Joined:
    Mar 20, 2006
    Location:
    Washington State
  9. MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #9
    Currently, yes. It's my computer, all the accounts are mine. Nothing fishy going on -.-'
     
  10. ezramoore macrumors 6502a

    Joined:
    Mar 20, 2006
    Location:
    Washington State
    #10
    If the guest account is set to sharing only (the default) you should be able to go to System Preferences > Accounts >Authenticate by click padlock at lower left > Guest Account > Allow guests to log in to this computer.
     
  11. MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #11
    I don't have access to that window since it's already logged in, yano?

    I'd have to log that user out before I could change its settings.

    So I'm just looking for a way to override that.

    You know, there HAS to be a way to modify that setting via Terminal, I know it!!
     
  12. ezramoore macrumors 6502a

    Joined:
    Mar 20, 2006
    Location:
    Washington State
    #12
  13. MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #13
    Thanks, but I must point out that I am unable to log out or restart because it will destroy all of the Guest's data!
     
  14. MrCheeto, May 28, 2011
    Last edited: May 28, 2011

    MrCheeto thread starter macrumors 68030

    MrCheeto

    Joined:
    Nov 2, 2008
    #14
    When I enabled root, it allows me to click Other and type any other name I choose.

    w in the Terminal returns the name Guest and says it's logged in.

    So I type Guest and leave the password blank, and it denies it.

    I am able to use Guest through Terminal by typing su - Guest! So just, how can I access saved passwords from the Guest account via Terminal, assuming I am running FROM guest?

    I was able to open iCal and quit it from the terminal inside of Guest!!! This means I basically have full CL control of the Guest account! Now just how do I get the passwords? Are they ONLY going to be in keychain??
     
  15. ezramoore, May 28, 2011
    Last edited: May 28, 2011

    ezramoore macrumors 6502a

    Joined:
    Mar 20, 2006
    Location:
    Washington State
    #15
  16. Jagardn macrumors 6502a

    Joined:
    Apr 18, 2011
    #16
    Sounds kinda fishy to me...just sayin.:rolleyes:
     

Share This Page