User can login as admin, but lost sudo
In a nutshell, my problem is this: I can login as admin, and I can make some admin changes (e.g. setting the date and time), but other permissions (anything that requires sudo) are inaccessible and/or corrupted. Is there a way to restore sudo to accept a password I provide? I don't much mind if it no longer matches the admin login password as long as I know what it is.
Illustration:
$ sudo ls
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
Sorry, try again.
sudo: 3 incorrect password attempts
$
I am quite certain I failed to make a typo in at least one of those attempts to enter the password. đ
Miscellaneous:
- I have two admin accounts - one that I use, and one that was originally for another person. Neither of us remembers the password on the second admin account. I also have a standard account that I use for day-to-day stuff.
- The libraries I updated immediately before the problem occurred were libxml2 (2.9.1), libpng (1.6.6), and libz (1.2.8). (see background)
- I have the OS X 10.5 install DVD.
- I do not have a backup drive for Time Machine to restore the system from.
- I have hidden files and folders set to display in Finder.
Background:
I recently tried updating some libraries on my iMac in order to build some open source image editing/processing software packages. I'm pretty sure something I did screwed stuff up in the process, and I can't seem to put things back the way they were as sudo no longer accepts my password. I tried rebooting. I can still log into the admin account, but I seem to be working with only a subset of admin privileges. At the same time, several other apps stopped working properly. For instance, I tried running ClamXav antivirus software, but it finishes without scanning any files, giving the following errors:
LibClamAV Error: cli_cvdload: Corrupted CVD header
LibClamAV Error: Can't load /usr/local/clamXav/share/clamav/daily.cvd: Malformed database
ERROR: Malformed database
I am able to connect to the WiFi in my office, but I cannot log in to get internet access. That may be unrelated, but it did not manifest until the reboot, so I am a bit suspicious. I have not yet tried lugging my iMac back home, where I have a little more control over the WiFi, but I'd prefer to first try stuff that does not require physically moving my computer. My best speculation is that it's all library shenanigans, and once I get the libraries back to their former versions, stuff will work again, but I'm kinda stuck without sudo.
iMac, Mac OS X (10.5.8)