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.

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.

Similar Messages

  • When ever i use a "sudo" command, it returns "sudo: can't open /etc/sudoers: Permission denied".... HELP PLEASE

    While using terminal, any commands with sudo returns the statement seen in the heading... I have only a basic idea of whats happening, so please try and make the solutions simple.. much appreciated

    Are you being prompted for a password? Are you using the same password you sign in with? Try just entering sudo with:
    sudo su -
    It will ask you for a password and then give you a stern warning about acting as root, where you can really mess up your computer for good if you are not careful. If it won't change to the root account you have a permission problem or a credentials problem.

  • Sudo unable to open /etc/sudoers

    Whenever I try to do anything at all with sudo on my fresh x86-64 Arch install, it prints out this error:
    sudo: unable to open /etc/sudoers: Permission denied
    sudo: no valid sudoers sources found, quitting
    sudo: unable to initialize policy plugin
    This is on a fresh Arch install from the core Image CD, packages initially installed from the CD and then upgraded with #pacman -Syu. I can edit sudoers just fine with visudo, and installing outdated versions of sudo produce the same error. File permissions on both /usr/bin/sudo and /etc/sudoers both look as they should be. Also, users and user groups don't seem to be an issue.
    Found this related StackExchange thread and here are the outputs of strace and ltrace if anyone can interpret them: http://unix.stackexchange.com/questions … most-files
    Ltrace:
    # ltrace -u notthemessiah sudo true 2>&1 | egrep '(sudo|stat|set.*[ug].*id)'
    bindtextdomain("sudo", "/usr/share/locale") = "/usr/share/locale"
    textdomain("sudo") = "sudo"
    strlen("sudo") = 4
    memcpy(0x01c6f299, "sudo", 4) = 0x01c6f299
    fopen("/etc/sudo.conf", "r") = 0
    __xstat(1, "/usr/lib/sudoers.so", 0x7fff6b0913d0) = 0
    dlopen("/usr/lib/sudoers.so", 257) = 0x01c6f630
    dlsym(0x01c6f630, "sudoers_policy") = 0x7f33e2f96960
    __xstat(1, "/usr/lib/sudoers.so", 0x7fff6b0913d0) = 0
    dlopen("/usr/lib/sudoers.so", 257) = 0x01c6f630
    dlsym(0x01c6f630, "sudoers_io") = 0x7f33e2f969c0
    fputs("sudo", 0x7f33e35296e0sudo) = 1
    fputs("unable to open /etc/sudoers", 0x7f33e35296e0unable to open /etc/sudoers) = 1
    fputs("sudo", 0x7f33e35296e0sudo) = 1
    fputs("no valid sudoers sources found, "..., 0x7f33e35296e0no valid sudoers sources found, quitting) = 1
    fputs("sudo", 0x7f33e35296e0sudo) = 1
    +++ exited (status 1) +++
    Strace:
    # strace -u notthemessiah sudo true 2>&1 | egrep '(sudo|set.*[ug].*id)'
    execve("/usr/bin/sudo", ["sudo", "true"], [/* 22 vars */]) = 0
    open("/etc/sudo.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/usr/lib/sudoers.so", {st_mode=S_IFREG|0755, st_size=185352, ...}) = 0
    open("/usr/lib/sudoers.so", O_RDONLY) = 3
    stat("/usr/lib/sudoers.so", {st_mode=S_IFREG|0755, st_size=185352, ...}) = 0
    open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US.utf8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.UTF-8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.utf8/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en/LC_MESSAGES/sudoers.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    lstat("/etc/sudoers", {st_mode=S_IFREG|0440, st_size=2849, ...}) = 0
    setresgid(4294967295, 0, 4294967295) = 0
    setresuid(0, 1, 4294967295) = 0
    open("/etc/sudoers", O_RDONLY) = -1 EACCES (Permission denied)
    setresuid(4294967295, 0, 4294967295) = 0
    write(2, "sudo", 4sudo) = 4
    write(2, "unable to open /etc/sudoers", 27unable to open /etc/sudoers) = 27
    setresuid(4294967295, 1, 4294967295) = 0
    setresgid(4294967295, 0, 4294967295) = 0
    setresuid(4294967295, 0, 4294967295) = 0
    setresuid(1000, 0, 4294967295) = 0
    setresgid(1000, 1000, 1000) = 0
    write(2, "sudo", 4sudo) = 4
    write(2, "no valid sudoers sources found, "..., 40no valid sudoers sources found, quitting) = 40
    open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.UTF-8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.utf8/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    write(2, "sudo", 4sudo) = 4

    No, I used visudoers and everything relating to that correctly. It's just probably something that happened while installing the core packages from the install CD that caused problems. As of now, I just reinstalled Arch on a new partition (this was a fairly fresh install) and it seems to work just fine. I was willing to continue to test the issue, but resizing the partition seems to have corrupted it somehow.

  • CAN'T  open any applications after mac os update 10.4.11

    CAN'T  open any applications after mac os update 10.4.11 help

    General advice on updating:
    It is worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first to an external hard disk. Ideally you should always have a bootable clone of your system that enables you to revert to the previous pre-update state.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site. If your car runs on gasoline you would not want to fill the tank with diesel, so don’t try to install the PPC updater on an Intel Mac!
    The 10.4.11 Combo Updater for PPC Macs is here:  http://support.apple.com/kb/DL170
    And for Intel Macs here:  http://support.apple.com/kb/DL172
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    Full details about the 10.4.11 update here:  http://support.apple.com/kb/TA24901?viewlocale=en_US
    More information on using Software Updater here:
    http://support.apple.com/kb/TA24901?viewlocale=en_US
    Using the Combo updater ensures that all system files changed since the original 10.4.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.4.10 to 10.4.11. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications and turn off energy saving and screensaver.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious!
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them compliant with the latest version of your operating system. Give them a weeks or two while you regularly check their websites for updates. This applies particularly to plug-ins for Safari 3.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    [b]If you are updating Safari (or just have):[/b]
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up.  If you have installed an OS update and Safari is crashing, the very [i]first[/i] thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 used Safari 3.0.4 which was [i]not[/i] a beta. If Safari 3.1.2 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 3.0.4 (or worse still, version 2) when running 10.4.11 or 10.5 can have repercussions, as Safari 3.1.1 uses a completely different webkit on which other applications like iChat, Mail and Dashboard Widgets etc also rely, and may entail you having to reinstall an earlier operating system.
    [b][i]Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on.[/b][/i] Two such add-on that have been frequently mentioned here for causing such problems are Piclens and Pithhelmet. If you have them, trash them.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for  problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    /Library/InputManagers
    ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).

  • IPhoto 08 Version 7.1.5 with 510 gb in a single library. I move it to a hd but can't open in a new mac iphoto version 8. It rebuilds and then stops. What to do?

    iPhoto 08 Version 7.1.5 with 510 gb in a single library. I move it to a hd but can't open in a new mac with iphoto version 8. It rebuilds and then stops. What to do?

    Select your My Book Studio for Mac icon on your Desktop and type Command + i to bring up its Info pane.  Check the formatting.  It should look like this:
    If it's not formatted as such you'll need to reformat it after backing up what's on there now.
    OT

  • I can't open Itunes on my mac. error 130001. how to fix?

    I can't open Itunes on my mac. error 130001. how to fix?

    Hi gingerjacker,
    Welcome to the Support Communities!
    Did you restart your Mac and try again?  Sounds simple, but it's a good first step when troubleshooting.
    If the issue persists you may need to delete iTunes from the Applications folder and download a fresh copy.  This does not affect your iTunes library, which is in a different location.
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/kb/ht2311
    Apple - iTunes - Download iTunes Now
    http://www.apple.com/itunes/download/
    Cheers,
    - Judy

  • Can I open bkf with my mac? I have my old file with bkf format how can I open it with my new Mac Pro?

    Can I open bkf with my Mac Pro? I have my old files with bkf format how can I open it?

    That is a Windows Backup file.  I seriously doubt that there will be any way to read that on a Mac.  Do you have a Windows machine that you can use to open those files and save the contents in a more friendly format?

  • Can't open mail in my MAC

    I can't open my mail on mac, support to my

    Ok I try it but my mail no run
    you see that
    rocess:         Mail [553]
    Path:            /Applications/Mail.app/Contents/MacOS/Mail
    Identifier:      com.apple.mail
    Version:         7.3 (1878.6)
    Build Info:      Mail-1878006000000000~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [183]
    Responsible:     Mail [553]
    User ID:         501
    Date/Time:       2014-07-07 13:06:03.775 +0700
    OS Version:      Mac OS X 10.9.4 (13E28)
    Report Version:  11
    Anonymous UUID:  D3FDE2FC-D4E4-F101-2503-10DCE7C342EC
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff54d0ffb0
    VM Regions Near 0x7fff54d0ffb0:
        MALLOC_TINY            00007ff2f8800000-00007ff2f8a00000 [ 2048K] rw-/rwx SM=PRV 
    --> STACK GUARD            00007fff51510000-00007fff54d10000 [ 56.0M] ---/rwx SM=NUL  stack guard for thread 0
        Stack                  00007fff54d10000-00007fff55510000 [ 8192K] rw-/rwx SM=COW  thread 0
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   com.apple.CoreFoundation       0x00007fff9657bac4 __CFStringChangeSizeMultiple + 20
    1   com.apple.CoreFoundation       0x00007fff965a76d5 __CFStringAppendBytes + 549
    2   com.apple.CoreFoundation       0x00007fff965a6160 __CFStringAppendFormatCore + 8480
    3   com.apple.CoreFoundation       0x00007fff965d4263 _CFStringCreateWithFormatAndArgumentsAux + 115
    4   com.apple.Foundation           0x00007fff9ab5012f -[NSPlaceholderString initWithFormat:locale:arguments:] + 132
    5   com.apple.Foundation           0x00007fff9ab5398c +[NSString stringWithFormat:] + 170
    6   com.apple.Mail.framework       0x00007fff908bbfcb +[MFMailbox _smartMailboxWithIdentifier:inArray:] + 201
    7   com.apple.Mail.framework       0x00007fff908bd433 +[MFMailbox mailboxWithPersistentIdentifier:] + 139
    8   com.apple.Mail.framework       0x00007fff907e00a2 -[MFCriterion(MFLibraryAdditions) convertToGmailLabelCriterionIfNeeded] + 101
    9   com.apple.Mail.framework       0x00007fff907dbc52 -[MFCriterion spotlightQueryString] + 299
    10  com.apple.Mail.framework       0x00007fff907ddc1c -[MFCriterion _spotlightQueryStringForCompoundCriterion] + 242
    11  com.apple.Mail.framework     

  • Cluster fails: Can't open /etc/cluster/nodeid

    Error:
    NOTICE: Can't open /etc/cluster/nodeid
    NOTICE: BOOTING IN NON CLUSTER MODEWe've already tried the workaround
    the following workaround should be done before rebooting the cluster
    node after scinstall.
    Add "etc/cluster/nodeid" to "/boot/solaris/filelist.ramdisk"
    # bootadm update-archive
    #rebootExcept the problem being that we don't even have a /boot partition/folder in root.
    /etc/cluster/nodeid doesn't even exist
    Everything was working fine then we rebooted today because one system froze and now this is what happens.

    The workaround only applied to x86 machines - as far as I remember. You have probably got a different problem. I would check to see what services are not starting. Use:
    # svcs -x
    You'll probably find the root cause of the problem that way. Also check /var/adm/messages
    Regards,
    Tim
    ---

  • Can't open Mail on my Mac Air

    i can't open Mail on my mac. I already tried to open using Applications still won't open. Clicked quit and rebuild nothing happened. I have updated my software.

    To ask a simple question, have you gone into the "Mail" App on your computer and completely set up your Mail account and set the required Account and Mail Servers info provided by your ISP?
    Hope this helps

  • I can not open safari on my mac pro

    i can not open safari on my mac pro. i have tried every thing i could from the support communities. also i have been trying to upgrade to mountain lion, but i could not get on app store saying the connection failed. i am getting tired of it. i think apple is suck as i used to use windows. please any one help out/

    Hi there 70gull,
    At this point, you may want to try reinstalling OS X as your next troublehsooting step. Take a look at the article below for more information. 
    OS X Mavericks: Reinstall OS X
    -Griff W. 

  • HT3775 I have received a .m4a audio file but can't open it  on my MAC or ipad . My get info suggests its MPEG-4 audo file .

    have received a .m4a audio file but can't open it  on my MAC or ipad . My get info suggests its MPEG-4 audo file .
    <E-mail Edited by Host>

    Try VLC media player it seems to play almost anything.
    http://www.videolan.org/vlc/

  • Dragged I movie on my Mac to flashdrive Now it doesn't show on the flashdrive or I can't open it on the Mac. How do I retreive my work

    I dragged I Movie from my I Mac to a flashdrive. Now it doesn't show on the flashdrive or I can't open it on the Mac. How do I retrieve the work?? Help

    If you only dragged it, it should make a copy so it should still be on your hard drive.
    It isn't clear if you dragged iMovie (the application itself) or your movie project. Which one is it?
    How is the "flashdrive" formatted?

  • I have upgraded Snow Leopard with Combo 10.6.8, the supplemental update and fixed permissions, but still can't open app store to upgrade to Mountain Lion. I am on the Cayman Islands. Thanks for the help!

    I have upgraded Snow Leopard with Combo 10.6.8, the supplemental update and fixed permissions, but still can't open app store to upgrade to Mountain Lion. I am on the Cayman Islands. Thanks for the help!

    Don't be afraid to bump this topic. There's also an App Store forum where you might repost this question, but give some of these details in your post.  I'd rephrase the topic to something like "Can't use App Store to upgrade." (Instead of can't "open".) Then give the details.
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store

  • I can't open my itunes when i download the lion

    when i download the lion i can't update my itunes and i can't open my itune plz help

    Did you install Lion yet, or are you still on Snow Leopard?
    - Mark
    MH Tech Solutions, LLC.

Maybe you are looking for

  • Help needed in debugging callablestatement changing performance

    Looking for some help debugging a performance problem. We are in the process of converting an ASP web application running on IIS to a java web application running on OAS. We have java code using a CallableStatement that calls an Oracle PL/SQL Procedu

  • Why don't Browse in Bridge command in photoshop cc 2014 work?

    Browse in Bridge command in photoshop cc 2014 does not work ( It can not open Bridge program why? )

  • Adobe clip notes quicktime playback Win XP 64

    Hello Havng an issue and wondering if anyone has experinced similar problem. When I open adobe clip notes .pdf file in adobe reader (that I exported in PrPro CS4) on windows xp pro 64 bit- the video comes up but the little quicktime play bar with pla

  • Screen sharing over the net. Is it possible.

    I was wondering if someone with screen sharing abilities could help out. I was wondering. Is it possible to share screens over the net. For example, my mom is like a 100 miles away. Running Leopard. How could I access her screen so that I could show

  • Resume working on a saved halfway done form in Reader

    I have an XFA form designed in Designer 7. I downloaded the Document Server for Reader Extension 6.0 and enabled the form. After I opened the form in Adobe Reader, typed in something and saved and closed the form. I was not able to work on the form a