The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   sudo password not accepted (http://hintsforums.macworld.com/showthread.php?t=23765)

George83 05-12-2004 06:53 PM

sudo password not accepted
 
I've been trying to fix a problem with Personal Web Sharing in OS X 10.3.3, but I seem to have dug myself a deeper hole. Whenever a password is requested after calling a 'sudo' command, the following occurs:

Mac:~ George$ sudo apachectl restart
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts

I'm sure the password is correct, because I've used it many times with sudo before.

Any help would be very much appreciated.

Many Thanks,
George

nkuvu 05-12-2004 06:57 PM

What do you get when you type the command id at the command prompt? If you're not in the right group then you won't be able to sudo (but I'm not sure if you'd get that error).

George83 05-12-2004 06:59 PM

Thanks for the super-fast reply. This is what I get:

uid=501(George) gid=501(George) groups=501(George), 79(appserverusr), 80(admin), 81(appserveradm)

nkuvu 05-12-2004 07:12 PM

Well you're in the admin group, which should be able to sudo. So another question.

If you enter the command cat /etc/sudoers is there a line in there somewhere that looks like %admin ALL=(ALL) ALL ?

psst, anyone who knows what they're talking about, feel free to step in, as I'm shooting blindly. ;)

George83 05-12-2004 07:15 PM

Mac:~ George$ cat /etc/sudoers
cat: /etc/sudoers: Permission denied

nkuvu 05-12-2004 07:21 PM

OK, try ls -l /etc/sudoers (that's "LS -L" but lowercase)

George83 05-12-2004 07:25 PM

-r--r----- 1 root wheel 341 13 Sep 2003 /etc/sudoers

nkuvu 05-12-2004 07:38 PM

Well the reason you have no permission to read /etc/sudoers is because you're not in the right group. At this point I'd suggest going into the NetInfo utility and adding yourself to the wheel group. But it's been a while since I've done this, so I can't write decent instructions from work (I'm on Windows here (ick)).

The NetInfo utility will let you really hose up your account, so don't just go in there and start changing things.

And I'm not even sure that's the issue here at all. I didn't have to modify my sudoers file to be able to sudo -- the admin group was there by default.

One other thing to try, though, is to do something in the Finder that would require your password. Just to make sure you really do have the correct one -- not that I don't think you're correct, just to narrow down possibilities. For example you could try to change your password in the Accounts preference pane. I believe it will ask for your old password, and if it's wrong you will still be logged in (you just won't be able to change the password).

Feel free to ask if this didn't make a lot of sense. ;) I'm trying to write quickly, since I'm supposed to be working...

nkuvu 05-12-2004 07:41 PM

You know, after I re-read your initial post, it occurs to me that you used to be able to sudo ("I've used it many times with sudo before" was the key here) so obviously something changed between then and now.

Installed any apps lately? Edit configuration files? Forget to wave a rubber chicken over the computer while performing the latest voodoo chants, perhaps?

George83 05-12-2004 08:31 PM

Well, I've been trying to follow various forums on getting Web Sharing to work, so I think the problem maybe from one of the commands I typed. I can't recall the exact point at which sudo stopped working, but it may be from one of these commands:

$ ps -auxww | grep http
$ sudo killall httpd
$ ps -auxww | grep http
$ killall -9 httpd

As for adding myself to the 'wheel' group (I'm not sure if you still think it's relevant now, in light of your last post), I can see the 'wheel' group listed under 'groups', but I'm not sure how to add my account to it. I'm a very recent convert from Windows, so my competence with the Mac OS isn't all that great.

I changed my password, but sudo rejects both the new and old passwords.

stetner 05-12-2004 10:36 PM

Quote:

Originally Posted by George83
As for adding myself to the 'wheel' group

Nope, don't wory about that.....
Code:

$ ls -l /etc/sudoers
-r--r-----  1 root  wheel  341 13 Sep  2003 /etc/sudoers

$ id
uid=501(stetner) gid=501(stetner) groups=501(stetner), 79(appserverusr), 80(admin), 81(appserveradm), 600(VPCDisks)

and sudo is working fine here. sudo actually su's before it reads this file.

Since you have an admin account, use a finder window (with shift-command-g) to look at /etc/ and then do a getinfo on the sudoers file then look in the permissions section, under 'details' and click on the little lock, change the owner to yourself (you may need to authenticate here), then go back to the terminal and cat the file. Show us what it says.

PS. Remember to switch the ownership back to 'system' when you are done!

nkuvu 05-13-2004 12:42 AM

Ahh, excellent. I was thinking I was going to be flailing around in here trying to find decent solutions... ;)

I thought of changing ownership of the sudoers file, but I always do that from the command line, which requires sudo. I'd completely forgotten about the ability to do this sort of thing from the Get Info window... :o

I guess at some point I must have added myself to the wheel group (using the NetInfo Manager):
uid=501(nkuvu) gid=501(nkuvu) groups=501(nkuvu), 0(wheel), 80(admin)

Hmm...

George83 05-13-2004 02:35 AM

This is what I get when ownership of 'sudoers' is set to myself:

Code:

Mac:~ George$ cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root    ALL=(ALL) ALL
%admin  ALL=(ALL) ALL


blb 05-13-2004 03:15 AM

Quick note, the primary reason for adding a user to the wheel group is to allow that user to be able to su to root...

stetner 05-13-2004 07:14 AM

Well, your sudoers file looks correct.

What happens when you try to su (just su, not sudo) to yourself? I.E.
Code:

$ su George
Password:
$

As well, what does a dump of youruserid from nidump show:
Code:

nidump -r /name=users/uid=501 /

George83 05-13-2004 08:06 AM

"$ su George" gives me exactly the same thing as you put, i.e. it accepts the password.


..and "$ nidump -r /name=users/uid=501 /" gives:

Code:

Mac:~ George$ nidump -r /name=users/uid=501 /
{
  "name" = ( "George" );
  "_writers_passwd" = ( "George" );
  "_writers_tim_password" = ( "George" );
  "_writers_picture" = ( "George" );
  "shell" = ( "/bin/bash" );
  "_writers_hint" = ( "George" );
  "home" = ( "/Users/George" );
  "gid" = ( "501" );
  "authentication_authority" = ( ";ShadowHash;" );
  "_writers_realname" = ( "George" );
  "picture" = ( "/Library/Caches/com.apple.user501pictureCache.userImage" );
  "passwd" = ( "********" );
  "realname" = ( "George Kamel" );
  "hint" = ( "Abraham's Birthday" );
  "sharedDir" = ( "Public" );
  "_shadow_passwd" = ( "" );
  "uid" = ( "501" );
  "generateduid" = ( "D413A6C9-5E42-11D8-B2EC-000A95AC8576" );
}


stetner 05-13-2004 08:51 AM

Hmmm, interesting...

How about...
Code:

$ which sudo
/usr/bin/sudo

$ alias sudo
su: alias: sudo: not found

$ ll /usr/bin/sudo
-r-s--x--x  1 root  wheel  96540 16 Mar 16:51 /usr/bin/sudo*

$ /usr/bin/sudo ls

It is looking like it is goint to turn out to be some obscure little problem, but finding it is the hard part. :)

Ahh, one other thing, since you have access via the admin stuff, have you tried to create a new user (with admin rights) and seeing if it can sudo?

George83 05-13-2004 09:44 AM

The first two commands are fine. The third command "$ ll /usr/bin/sudo" gives:

Code:

Mac:~ gkamel$ ll /usr/bin/sudo
-bash: ll: command not found


The fourth command "$ /usr/bin/sudo ls" gives:

Code:

Mac:~ gkamel$ /usr/bin/sudo ls

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

        #1) Respect the privacy of others.
        #2) Think before you type.

Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
/usr/bin/sudo: 2 incorrect password attempts

Note: This is under a newly created Admin account, 'gkamel'. The same thing was carried out in my main account, and I get exactly the same outputs, except I do not get the disclaimer about the lecture from the Administrator.

nkuvu 05-13-2004 11:01 AM

The lecture should only happen once per user. And the ll is a commonly used abbreviation for the ls -l that I asked you to enter for the sudoers file.

So what's the output of ls -l /usr/bin/sudo ?

George83 05-13-2004 11:23 AM

Quote:

Originally Posted by nkuvu
So what's the output of ls -l /usr/bin/sudo ?

Code:

Mac:~ George$ ls -l /usr/bin/sudo
---s--x--x  1 root  wheel  107176 12 May 19:30 /usr/bin/sudo


yellow 05-13-2004 11:36 AM

For me.. (10.3.3)
Code:

yellow% ls -l /usr/bin/sudo
-r-s--x--x    1 root    wheel      96540 Mar 16 09:29 /usr/bin/sudo


George83 05-13-2004 12:37 PM

I ran Disk Utility from the Mac OS X CD, and repaired disk permissions, and so I now get:

Code:

Mac:~ George$ ls -l /usr/bin/sudo
-r-s--x--x  1 root  wheel  107176 12 May 19:30 /usr/bin/sudo

However, sudo still doesn't accept the password :confused:

As an aside, does anyone know why the timestamp on the above output is 2 hours behind the actual system time, as displayed in the menu bar? It doesn't bother me, but I'm just interested to know!

nkuvu 05-13-2004 12:38 PM

Yep, I have the same as yellow and stetner. Well, the date is from when I reinstalled the OS.
-r-s--x--x 1 root wheel 96540 27 Apr 23:14 /usr/bin/sudo

nkuvu 05-13-2004 12:40 PM

Well the permissions are the same, but the file sizes are still different.

yellow 05-13-2004 12:45 PM

Quote:

Originally Posted by nkuvu
Well the permissions are the same, but the file sizes are still different.

I find this to be unusual and possibly problematic. I don't want to be an alarmist, but every Panther machines I've checked all have the same file size.. 96540 bytes. All the Jaguar boxes (at least the 5 I checked) had the same size too, 96384 bytes.
This may be perfectly normal difference between UK/US versions of OSX, I really don't know. So, no panicking.

What does "sudo -V" return?
For me:
Code:

yellow% sudo -V
Sudo version 1.6.6


George83 05-13-2004 01:09 PM

Code:

Mac:~ George$ sudo -V
Sudo version 1.6.3p7

The lastest version is 1.6.7p5. I tried to follow the upgrade instructions (found in the UPGRADE.txt file in the .tar.gz file), but it's over my head.

Is upgrading recommended? If so, simple instructions would be very much appreciated.

Thanks.

yellow 05-13-2004 01:19 PM

I find it very odd that you have an old version of sudo, yet you're running 10.3.3. Even the Jaguar boxes I checked are running 1.6.6.

George83 05-13-2004 02:23 PM

I found this in the FAQ on the sudo web site, but I'm having trouble making any sense of it:


Quote:

Q) When sudo asks me for my password it never accepts what I enter even though I know I entered my password correctly.

A) If your system uses shadow passwords, it is possible that sudo didn't detect this. Take a look at the generated config.h file and verify that the C function used for shadow password lookups was detected. For instance, for SVR4-style shadow passwords, HAVE_GETSPNAM should be defined (you can search for the string "shadow passwords" in config.h with your editor). Note that there is no define for 4.4BSD-based shadow passwords since that just uses the standard getpw* routines.
For starters, where is the config.h file located? It's not in /usr/bin/sudo... Any ideas?

sao 05-13-2004 04:14 PM

Here we go again...

Code:

[pm @ Sao: ~] % grepbom sudo
.................../private/etc/pam.d/sudo      281    Sat Sep 13 08:06:12 2003
./private/etc/sudoers  341    Sat Sep 13 12:29:01 2003
./usr/bin/sudo  96,540  Wed Sep 24 14:48:17 2003
./usr/sbin/visudo      69,592  Wed Sep 24 14:48:17 2003
./usr/share/man/man5/sudoers.5  45,390  Sat Sep 13 12:29:02 2003
./usr/share/man/man8/sudo.8    19,387  Sat Sep 13 12:29:01 2003
./usr/share/man/man8/visudo.8  10,001  Sat Sep 13 12:29:02 2003
./usr/share/zsh/4.1.1/functions/_sudo  650    Sat Sep 13 09:51:06 2003
  ====> /Library/Receipts/Essentials.pkg/Contents/Archive.bom


blb 05-13-2004 04:21 PM

Definitely sounds like something replaced your good sudo with an older version, one that probably doesn't know how to handle 10.3's new shadow password method. The config.h is actually something you would edit when compiling sudo, so you probably won't be finding it on your system.

As sao hints, your best bet is to get sudo out of the Essentials package via something like Pacifist.

George83 05-13-2004 04:45 PM

I opened the Essentials.pkg with Pacifist, Authorized, and then located the 'sudo' file, but it says that 'Package contains no files to extract', and the 'Extract To...' button is grayed-out.

Also, sao, were you 'hinting' that I should extract files other than sudo? I tried typing 'grepbom sudo', but the command is not recognised.

George83 05-13-2004 05:21 PM

OK, I got the file from the Mac OS X install CD, and it works perfectly!

Thanks very much for all your help, guys.

stetner 05-13-2004 07:23 PM

OK, that is great, but the question is where did the bad sudo come from? Had you installed it or has somebody been hacking at your machine?

blb 05-13-2004 07:59 PM

Quote:

Originally Posted by stetner
OK, that is great, but the question is where did the bad sudo come from? Had you installed it or has somebody been hacking at your machine?

Definitely a good question; but do note, the 'bad' sudo already had suid-root permissions, so something had to have root already.

George83 05-13-2004 08:54 PM

I definitely didn't install it, and I doubt it's the latter as I'm behind a hardware firewall (well, at least I hope it's not the latter!).

jeremyg 06-01-2004 07:45 AM

hi,
i have the same problem relating to sudo not working and its only after i installed the "websharing 1.0" update from the apple website (ssh doesnt work anymore either). I take it i need to install the essentials package again or is it the sudo.pkg? I got my panther os shipped with my powerbook so my only two options are re-install osX or software restore and software restore doesnt correct the problem (i ran it to test anyway). So, is there anyway i can get the required package (e.g from a website) or could someone email it to me please if its not too big?
any helps great,
jeremy

blb 06-01-2004 04:20 PM

That Web Sharing Update has the exact size sudo binary George83 reported earlier...

However, that thing really shouldn't be installed on 10.3 (and probably not even 10.2), since it was released in July 2001.

jeremyg 06-02-2004 12:27 AM

i guess he probably installed that as well. It didnt say anything about compatibility with a certain os version so i just ran the instaler for it - big mistake. So..... is it possible to get the package i need to run without re-installing the whole os again?
jeremy

dfmiller 06-09-2004 12:23 PM

Hi, I am in precisely the same situation as our protagonist, George. I have followed your diagnosis through two pages of commands and have generated results identical to those George found. In regard to what I thought was an unrelated matter, I just posted a message to Jeremy (http://forums.macosxhints.com/showthread.php?t=24315) about a problem we are both having with OpenSSL. But your comment about the Web Sharing Update made me realize the cause of the problem for George, Jeremy and me (I think). I have mistakenly installed this update, meant for 10.1, over my 10.3.4. You can probably guess that I don't make my living as a system admin. Assuming that this is the underlying problem for me at least, how can I undo what that installation did? Thanks for your patience.

Whit

hayne 06-09-2004 12:31 PM

Quote:

Originally Posted by dfmiller
how can I undo what that installation did?

The safest thing would be to do an archive and install. I.e. reinstall Jaguar (from your install CDs) but keeping your current user data. You would then need to check Software Update (on the Apple menu) and apply all the updates that it presents to you. And it would be advisable in future to only apply updates as they are presented to you by Software Update - don't apply updates you downloaded manually unless you read very carefully about what they do.

Of course, it is recommended that you make a backup of the files you care about before doing the re-install.

dfmiller 06-09-2004 12:59 PM

OK, thats what I'll do, though I'm on panther, not jaguar.

Quote:

Originally Posted by hayne
The safest thing would be to do an archive and install. I.e. reinstall Jaguar (from your install CDs)

After backup, I'll put in the panther disks and install on top of current installation. Thanks

Whit

jeremyg 06-10-2004 09:55 PM

i have postgresql, fink and php installed on my panther 10.3.3 machine. if i re-install osX keeping user data will these programs remain since some of their files are in the "hidden" unix directories underneath the mac interface?
jeremy

mervTormel 06-10-2004 10:17 PM

it might help to open a new thread about this?

fink is autonomous, and safe, at /sw

you'll need to know where your php and postgres are installed and if they are safe.

/usr/local is considered safe/untouchable.

vendor reserved root dirs:

Applications/
Developer/
Library/
Network/
System/
Trash/
Users/
Volumes/
automount/
bin/
cores/
dev/
lost+found/
private/
sbin/
usr/ *

* with the exception that /usr/local remains safe

lolajl 06-18-2004 09:09 AM

I'm having basically the same problem as well. I cannot do sudo as myself even though I'm the only administrator for this laptop (in other words, I'm the only one who uses it). I went through some of the steps to diagnose this problem.

It turns out that my uid is set to 501, and gid is set to 20. Authentication authority is set to basic. Groups=20 is set to staff; 80 to admin. Sudo seems to have the proper permission set (-r-s--x--x). There was a suggestion on making changes in NetInfo Manager but there wasn't any instructions on doing so.

So, it looks like I need to change groups to 80, right?

yellow 06-18-2004 09:20 AM

Did you install the WebSharing update too?

In the Terminal type:
groups

That will tell you what groups your admin account is in.

lolajl 06-18-2004 09:53 AM

Quote:

Originally Posted by yellow
Did you install the WebSharing update too?


Where would I get this from? Wasn't aware that I would need to install this.

Quote:

Originally Posted by yellow
That will tell you what groups your admin account is in.

I'm seeing:

staff admin

Should I be seeing something else as well?

yellow 06-18-2004 10:02 AM

Quote:

Originally Posted by lolajl
Where would I get this from? Wasn't aware that I would need to install this.

You don't need this. Some earlier posters in this thread with the same problem did install it and it broke their sudo.

Quote:

Originally Posted by lolajl
I'm seeing: staff admin
Should I be seeing something else as well?

No, not necessarily. What you see is normal. And as you can see, you are in the admin group already. And if you type id in the Terminal what do you get?

lolajl 06-18-2004 10:40 AM

Quote:

Originally Posted by yellow
You don't need this. Some earlier posters in this thread with the same problem did install it and it broke their sudo.

No, not necessarily. What you see is normal. And as you can see, you are in the admin group already. And if you type id in the Terminal what do you get?


As I said earlier, uid is 501, gid is 20, groups=20(staff), 80(admin)

yellow 06-18-2004 11:11 AM

Ooops, missed that. Yes, the GID should be 80. I don't know if this will work or not since your admin account appears to be messed up.

To change the GID, open NetInfo Manager, select users from the center panel, select your user, click the lock to attempt to unlock NetInfo manager, double click on the "Value" of the GID field, change it to 80, cmd-S to save NetInfo.

I don't know if you need to logout and log back in, assuming it works. If it doesn't let you authenticate against NetInfo Manager, do you have root enabled?

lolajl 06-18-2004 11:42 AM

Quote:

Originally Posted by yellow
I don't know if you need to logout and log back in, assuming it works. If it doesn't let you authenticate against NetInfo Manager, do you have root enabled?


Made the changes, logged out/in and still doesn't work when I go into terminal under my username.

I have root enabled, I believe, since I can do "sudo su -".

yellow 06-18-2004 12:26 PM

Quote:

Originally Posted by lolajl
Made the changes, logged out/in and still doesn't work when I go into terminal under my username. I have root enabled, I believe, since I can do "sudo su -".

weird. OK, lemme ruminate upon that. FYI, no need for sudo when doing "su -", if you're in the admin group you can su to root (or anyone else). OK, 2 new ideas. 1) Post the output of "ssh -V", 2) create a new admin user and verify that sudo is functional/broken for that user as well.

yellow 06-18-2004 12:56 PM

Quote:

Originally Posted by yellow
FYI, no need for sudo when doing "su -", if you're in the admin group you can su to root (or anyone else).

This statment is wrong, so let me clarify it. You can "su -" to root (from anyone) as long as you know the password for root. You can "su - username" to another user (from anyone) as long as you you know the username's password. You can use sudo (assuming you are an admin) to "su -" to anyone by simply using your admin account password. So you were quite right earlier, I don't want to confuse any future readers of this thread, so I had to correct myself.

lolajl 06-19-2004 10:42 PM

Quote:

Originally Posted by yellow
weird. OK, lemme ruminate upon that. FYI, no need for sudo when doing "su -", if you're in the admin group you can su to root (or anyone else). OK, 2 new ideas. 1) Post the output of "ssh -V", 2) create a new admin user and verify that sudo is functional/broken for that user as well.

Here's the output of ssh -V:

OpenSSH_3.6.1p1+CAN-2003-0693, SSH protocols 1.5/2.0, OpenSSL 0x0090702f

lolajl 06-19-2004 10:53 PM

Quote:

Originally Posted by yellow
2) create a new admin user and verify that sudo is functional/broken for that user as well.

And yes, the test admin user I created has permission denied when trying to do "cat /etc/sudoers".

Krazy 06-19-2004 11:08 PM

Quote:

Originally Posted by lolajl
Here's the output of ssh -V:

OpenSSH_3.6.1p1+CAN-2003-0693, SSH protocols 1.5/2.0, OpenSSL 0x0090702f

For what its worth, I have the same version under 10.3.4 + SecUpd2004-06-07Pan.pkg security update.


Quote:

Originally Posted by lolajl
And yes, the test admin user I created has permission denied when trying to do "cat /etc/sudoers".

This is also true for me. I can only cat the the sudoers file after sudo-ing, because its owned by root.

yellow 06-21-2004 10:13 AM

Quote:

Originally Posted by lolajl
And yes, the test admin user I created has permission denied when trying to do "cat /etc/sudoers".

Just like Krazy said, sudo (or root) is requires to read /etc/sudoers. Does that work on your new admin test user?

robek 07-07-2004 10:14 AM

Quote:

Originally Posted by lolajl
Made the changes, logged out/in and still doesn't work when I go into terminal under my username.

I have root enabled, I believe, since I can do "sudo su -".

I am another one having problems with sudo's password. I am trying to execute the 'sudo nvram boot-args=...' to activate my old video card. As a user, I am a member of the wheel group but not the admin group. I have sudo version 1.6.6 but a different size than reported earlier in this discussion. I have installed Panther 10.3.3 initially and upgraded to 10.3.4 using update panel. I can do 'su -' to switch to root or do 'su sysadmin' to switch to the admin account. Password are accepted as expected. But when I do sudo, entering either root or sysadmin password gives me "Sorry, try again." I checked that the sudoers file has read access by owner (root) and group wheel, and the content as it was reported in this thread.

So what gives? :confused:

derekhed 07-07-2004 02:13 PM

Please su to root and give us the results of:
cat /etc/sudoers

Do you have a line at the bottom with %admin ALL=(ALL ) ALL ?

robek 07-07-2004 05:11 PM

Quote:

Originally Posted by derekhed
Please su to root and give us the results of:
cat /etc/sudoers

Do you have a line at the bottom with %admin ALL=(ALL ) ALL ?

Yes. The file content are the two lines as somebody quoted earlier. Are you implying that wheel must be there as well or that I must be also be a member of the admin group. But in the latter case, what would be the point of having user accounts if everyone would need to be admin to sudo?

Robert

yellow 07-07-2004 05:47 PM

Quote:

Originally Posted by robek
Are you implying that wheel must be there as well or that I must be also be a member of the admin group. But in the latter case, what would be the point of having user accounts if everyone would need to be admin to sudo?

Yes, you must be in the admin group to use sudo.
The point of sudo is to not have to login as root (nor even enable root) in order to do things that need to be done as root. Those users that have no need to do admin things (and therefore, no need for sudo) do not need to be, nor should be, in the admin group. However, this is the default set up for the sudoers file. You can easily edit it to add particular users and enable sudo for them, yet they don't have to be part of the admin group. But that, IMO, is a colossal security risk that should be undertaken with the utmost of care.

Karmakaze 05-19-2009 06:13 PM

Just had a very similar problem and wanted to post the cause solution in case anyone else runs into it.

In my case, I was mucking around trying to get PHP/Apache running, but the version of /usr/lib/libxml2.dylib I had was out of date. So I downloaded a new one and installed that (but it was installed to /usr/local/lib). So without thinking I mv'ed the one in /usr/lib to a backup dir, thinking I'd move the one from local lib in there next. But I got sidetracked and forgot, as PHP/Apache was working fine with it in /usr/local/lib.

Well, I guess sudo relies on that lib, as sudo was broken the next time I tried (always rejected my password as described above). After seeing Spotlight and Installer crashes, I realized what happened.

I had to go into single user mode to move the original one back (haven't tried putting the new one in /usr/lib yet).

So, anyways, I can't say how to diagnose a problem like mine, but can say if you changed anything in /usr/lib, you may see the symptoms listed in this thread.

QuarterSwede 08-07-2011 12:48 AM

I wasn't able to authenticate as root in terminal but I could in any other system dialog (ex. lock icon in System Preferences). I found an easy solution that worked for me. I just changed the root password in terminal (sudo passwd root). The strange thing is my admin password worked fine to change the root password. From then on I had no issue. Hope this helps someone.


All times are GMT -5. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.