Zed's Macbook Pro

Q: Terminal needs password

I am trying to create bootable drive for a fresh install of 10.10. Following an article on macworld, I copy & passed a sudo command in terminal.

Then terminal asked for my password. I don't have one, I have never used one. So I am stuck.

Can some one help?

MacBook Pro (13-inch Early 2011), Mac OS X (10.0.x), 12GB Ram

Posted on Feb 15, 2015 4:46 PM

Close

Q: Terminal needs password

  • All replies
  • Helpful answers

  • by Niel,

    Niel Niel Feb 15, 2015 4:48 PM in response to Zed's Macbook Pro
    Level 10 (313,156 points)
    Mac OS X
    Feb 15, 2015 4:48 PM in response to Zed's Macbook Pro

    Open the Users & Groups pane of System Preferences and set a password.

     

    (122427)

  • by Camelot,

    Camelot Camelot Feb 15, 2015 9:38 PM in response to Zed's Macbook Pro
    Level 8 (47,290 points)
    Mac OS X
    Feb 15, 2015 9:38 PM in response to Zed's Macbook Pro

    If you've truly never, ever set a password (as opposed to setting a password which you've forgotten since you never use it), then I'd assume that sudo would accept that - sudo doesn't know (or care) what your password is - it prompts you, whatever you enter is compared against the stored password and if they match, you're set.

    Now, this is all hypothetical since a) sudo might explicitly check that you enter *some* value, on the basis that every account should have one, and b) it should be really hard to setup your system with no password, since that's part of the initial setup process (and, let's face it, not a smart thing to do).

    Ultimately, setting a password (and remembering it) is the better solution.

  • by Niel,

    Niel Niel Feb 15, 2015 9:42 PM in response to Camelot
    Level 10 (313,156 points)
    Mac OS X
    Feb 15, 2015 9:42 PM in response to Camelot

    The sudo command won't work for an account which doesn't have a login password. Click here for more information.

     

    (122440)

  • by Zed's Macbook Pro,

    Zed's Macbook Pro Zed's Macbook Pro Feb 16, 2015 6:03 AM in response to Camelot
    Level 1 (7 points)
    iCloud
    Feb 16, 2015 6:03 AM in response to Camelot

    Thanks for your reply. I went to System prefs/users & groups to my admin account to change the password. I entered in some passwords I thought it might be until I had acceptance in the "old password line". I did not proceed further. So there is obviously a password. I then returned to terminal and entered the password which showed acceptance and it was rejected as the wrong password. I was reluctant to change this password for fear of locking myself out of the system since there is obviously a password which sudo either rejected, or did not match which what it saw.

    Should I go ahead and change the password and try again?