sudo can't open /etc/sysinfo.conf mac os x lion
I have been trying to get locate to work for ages now (well not really, only since I upgraded to lion).
And I'm having no joy. I keep getting an su error when /usr/libexec/locate.updatedb is being called.
Terminal just throws this cool error "su: Sorry".
Console (syslog) shows this error
(pam_acct_mgmt: error in service module)
Which apparently means an error occured in a PAM module
I decided to run dtrace opensnoop to find out what files were being opened and what was going wrong.
Mind you that I am not versed in Dtrace, this is one of my first uses.
This is what I get when I run "sudo /usr/libexec/locate.updatedb" whilst running "sudo opensnoop -x -n sudo -e":
UID | PID | COMM | FD | ERR | PATH |
---|---|---|---|---|---|
0 | 54853 | sudo | -1 | 2 | /etc/sysinfo.conf |
0 | 54854 | sudo | -1 | 2 | /proc/self/fd |
0 | 54858 | su | -1 | 2 | /etc/sysinfo.conf |
/etc/sysinfo.conf does not exist on my system.
This might be the cullprit, but I'm not sure.
I have been getting the very "helpfull" tip to just use mdfind.
Not being able to use locate isn't the end of the world for me, it just bugs the **** out of me that it doesn't work anymore.
I can't shake the feeling that I don't know what else is broken.
MacBook Pro, Mac OS X (10.7.2)