-
All replies
-
Helpful answers
-
Feb 15, 2015 4:48 PM in response to Zed's Macbook Proby Niel,Open the Users & Groups pane of System Preferences and set a password.
(122427)
-
Feb 15, 2015 9:38 PM in response to Zed's Macbook Proby Camelot,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.
-
Feb 15, 2015 9:42 PM in response to Camelotby Niel,The sudo command won't work for an account which doesn't have a login password. Click here for more information.
(122440)
-
Feb 16, 2015 6:03 AM in response to Camelotby Zed's Macbook Pro,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?