Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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":



UIDPIDCOMMFDERRPATH
054853sudo-12/etc/sysinfo.conf
054854sudo-12/proc/self/fd
054858su-12/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)

Posted on Oct 19, 2011 4:54 AM

Reply
1 reply

Oct 20, 2011 7:43 AM in response to alexander110

I fixed the issue by doing a clean install of Lion.

Now locate works as expected.


Incidentally, when I installed Xcode on my upgraded version of Lion I had the same problem that many other people had which was that the installer window (the one with the progress bar) got stuck at 99% even though Xcode finished installing.

I did not have this issue with the clean install Lion... hmm go figure.

sudo can't open /etc/sysinfo.conf mac os x lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.