Currently Being Moderated2012. 9. 3 오전 6:40 (in response to Barney-15E)
This is the mesage that is generated in console after each attempt to use the sudo command.
03/09/2012 11:57:38.143 sudo: nigel : 1 incorrect password attempt ; TTY=ttys000 ; PWD=/Users/nigel ; USER=root ; COMMAND=/usr/bin/fing
Currently Being Moderated2012. 9. 3 오전 8:59 (in response to sinjon2112)
I don't know of anything else to check.
Can you try a very simple, but long (more than 8 character) password. See if that works.
You can always change it back to something more secure. I'm just wondering if there is something in the password that is causing problems for sudo.
Currently Being Moderated2012. 9. 5 오전 1:22 (in response to Barney-15E)
Hi Barney, sorry for the delay in replying, I had to work away yesterday.
Ok I tried changing my password to "qwertyuiop" but still no joy. Still getting the same response. I think I'll have to ring AppleCare and see if they can sugest anything, but I'm guessing the next step will be to create a new user account and see if the problem persists.
Currently Being Moderated2012. 9. 5 오전 1:29 (in response to Barney-15E)
Ha!, Well I took my own advice and created a new Admin account and gues what? Terminal accepts the password. Looks like my account is corrupt somewhere. Not sure if this means I need to move everything to a new account or if there are steps I can take to fix it. I'll try permisions repair first as that's the only thing that springs to mind right now.
Thanks for your help.
Currently Being Moderated2012. 9. 5 오전 4:13 (in response to sinjon2112)
The basic Repair Permissions in Disk Utility won't affect your user account.
You can reset your home folder permissions by doing the following:
Boot into Recovery HD (hold down cmd-r on start).
When it boots up, go to the Utilities menu and select Terminal.
Type resetpassword and hit return
Select the volume (Macintosh HD by default)
Select your Account
Click the Reset Home Folder permissions and ACLs button.
You can quit and restart from there.
Currently Being Moderated2012. 9. 5 오전 8:42 (in response to sinjon2112)
Note that the account and password you're using with 'sudo' must be an ADMIN user account. Is the username/password that of an admin user, or a standard user? If it's the latter, it won't work with sudo (sudo is short for "super user do" and a standard user is not a super user in any form of the word ;-)
Currently Being Moderated2012. 9. 5 오전 9:59 (in response to William Lloyd)
Hi William. Yes I'm running an Admin account. I've even tried logging into the other admin account and changing my account to standard, restarting, then changing it back to admin, restarting again to see if that would correct some missing permissions but no joy.
Currently Being Moderated2012. 9. 5 오후 5:54 (in response to sinjon2112)
Generally speaking, 'sudo' takes its clues from the /etc/sudoers file.
Have you tried using System Preferences -> Accounts to reset your account's password?
I'm assuming that you are specifying your logged in account's password for the 'sudo' password prompt.
'sudo' does not need an enabled root account. root can remain disabled.
Currently Being Moderated2012. 9. 6 오전 12:56 (in response to BobHarris)
Hi Bob, thanks for looking. Yes I've done the whole password reset thing, both within System Prefs and also from the Recovery Disk utility and yes I am using the correct password for the logged in account.
I did try enabling root user, just so I could execute the command, but that made no difference, it wouldn't accept the root password either.
There must be something up with my user account as when I try the same command from my "stand by" Admin account, which I don't generally use, it works fine.
Currently Being Moderated2012. 9. 6 오전 3:51 (in response to sinjon2112)
Use the standby admin account to look at the /etc/sudoers file to see if there is anything amiss in the file
Wild guess/idea, check you home Folder's permissions to make sure the do not allow anyone else write access. I know ash refuses to do some things if it thinks someone could put a Trojan file in your home folder. Compare against standby admin.
Check what groups you are in, and compare against standby admin
There is some difference between the 2 accounts, and what is in /etc/sudoers.