/usr/lib world of issues, Sudo not working, can't load new Terminals or copy files...

Discussion in 'Mac Basics and Help' started by mic1, Jun 27, 2013.

  1. mic1, Jun 27, 2013
    Last edited: Jun 27, 2013

    mic1 macrumors newbie

    Joined:
    Jun 27, 2013
    #1
    Hi, I was installing a Perl Library via CPAN and something must have messed up some libraries during that process; this caused me issues because I couldn't launch many programs like Chrome. Whilst trying to resolve this issue I rather stupidly caused another and now I am having a rather major crisis.

    I have work I need to backup and I can't copy over to my cloud storage as I can't move any files, or rename any. Logging into Terminal just closes it immediately (With ITerm stating issues with the profile) and to top it all off I still can't open Chrome :eek:

    Anyway it's obvious what the issue is, changing something in /usr/libs is not advised and this has caused a major blowout, especially with Sudo every command I run gives me
    Code:
    sudo: unable to initialize PAM: No such file or directory
    A possible fix to this would be to take someone else's /usr/lib directory and put that in mine, now two questions:

    1) Would copying someone else's Libraries fix my issue?
    2) How would I copy them over if I can't move any files?

    Any speedy answer would be very very much appreciated,

    Thanks
    M

    EDIT: Ok this is more serious that I thought, I can't actually open up any programs now, if I close one I can never open it again, which means I cannot turn off my machine or close any windows.
     
  2. mfram macrumors 65816

    Joined:
    Jan 23, 2010
    Location:
    San Diego, CA USA
    #2
    I think you're going to have to re-install Mac OS. If you do it without re-formatting, you shouldn't lose your user files.
     
  3. ratsg macrumors 6502

    Joined:
    Dec 6, 2010
    #3
    I have (2) comments for you as you ponder your system after your rebuild/reinstall.

    * first, Perl. If you are heavy into Perl, adding lots of CPAN modules, consider installing your own Perl and leaving the system installed Perl alone. This is a bigger issue on some Unix's than others, but compiling/installing your own Perl allows you to be up to date with your Perl version as you want/need to be, and to add/remove/mess around with as many modules as you care to. And never worrying if you are going to mess up any of the system stuff.

    * sudo and root - It sounds like this system is your stand alone system, and if it is, and the only real problem you had was a broken sudo, my advice would just be to forget sudo and just use the root account.

    For some strange reason in the Apple Unix world, people seem to think that the root account is evil. That notion is just silly. If you, or anyone, thinks that typing four extra characters is going to protect them from doing something stupid, maybe that person should be taking their OS X box to someone for sysadmin task.

    But don't take my word for it. Quote verbatium from the sudo home page - http://www.sudo.ws/

    Sudo (su "do") allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.
     
  4. ratsg macrumors 6502

    Joined:
    Dec 6, 2010
  5. givemesudo macrumors newbie

    Joined:
    Nov 7, 2013
    #5
    i'm on snow leopard

    secure.log:Nov 7 04:43:06 macobok login[24419]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 04:43:06 macbook login[24419]: pam_start(): system error
    secure.log:Nov 7 04:43:26 macoobk login[25657]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 04:43:26 macbook login[25657]: pam_start(): system error
    secure.log:Nov 7 04:49:25 macbook su[34469]: in openpam_load_module(): no pam_opendirectory.so found
    secure.log:Nov 7 04:49:25 macBook su[34469]: pam_start: system error
    secure.log:Nov 7 04:49:27 macBook su[34470]: in openpam_load_module(): no pam_opendirectory.so found
    secure.log:Nov 7 04:49:27 macBook su[34470]: pam_start: system error
    secure.log:Nov 7 04:49:36 macBook su[34549]: in openpam_load_module(): no pam_opendirectory.so found
    secure.log:Nov 7 04:49:36 macBook su[34549]: pam_start: system error
    secure.log:Nov 7 04:49:37 macBook su[34551]: in openpam_load_module(): no pam_opendirectory.so found
    secure.log:Nov 7 04:49:37 macBook su[34551]: pam_start: system error
    secure.log:Nov 7 04:49:41 macBook su[34561]: in openpam_load_module(): no pam_opendirectory.so found
    secure.log:Nov 7 04:49:41 macBook su[34561]: pam_start: system error
    secure.log:Nov 7 04:59:19 macBook login[42763]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 04:59:19 macBook login[42763]: pam_start(): system error
    secure.log:Nov 7 04:59:31 macBook login[42876]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 04:59:31 macBook login[42876]: pam_start(): system error
    secure.log:Nov 7 12:13:56 macBook login[270]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 12:13:56 macBook login[270]: pam_start(): system error
    secure.log:Nov 7 12:15:27 macBook login[441]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 12:15:27 macBook login[441]: pam_start(): system error
    secure.log:Nov 7 12:15:49 macBook login[444]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 12:15:49 nacBook login[444]: pam_start(): system error
    secure.log:Nov 7 12:16:05 macBook login[447]: in openpam_lo
    SOMEONE GIVE ME THE /usr/lib/pam
    secure.log:Nov 7 12:17:53 macBook login[478]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 12:17:53 macBook login[478]: pam_start(): system error
    secure.log:Nov 7 13:35:27 macBook login[601]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:35:27 macBook login[601]: pam_start(): system error
    secure.log:Nov 7 13:35:43 macBook login[602]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:35:43 macBook login[602]: pam_start(): system error
    secure.log:Nov 7 13:35:52 macBook login[603]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:35:52 macBook login[603]: pam_start(): system error
    secure.log:Nov 7 13:36:44 macBook login[605]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:36:44 macBook login[605]: pam_start(): system error
    secure.log:Nov 7 13:36:47 macBook login[606]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:36:47 macBook login[606]: pam_start(): system error
    secure.log:Nov 7 13:44:04 macBook login[265]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:44:04 macBook login[265]: pam_start(): system error
    secure.log:Nov 7 13:45:28 macBook login[446]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:45:28 macBook login[446]: pam_start(): system error
    secure.log:Nov 7 13:45:39 macBook login[447]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:45:39 macBook login[447]: pam_start(): system error
    secure.log:Nov 7 13:47:30 macBook login[454]: in openpam_load_module(): no pam_krb5.so found
    secure.log:Nov 7 13:47:30 macBook login[454]: pam_start(): system error

    Pam is in directory ls /usr/lib/pam/
    pam_deny.so pam_krb5.so pam_nologin.so pam_rootok.so pam_serialnumber.so
    pam_env.so pam_launchd.so pam_opendirectory.so pam_sacl.so pam_uwtmp.so.2
    pam_group.so pam_mount.so pam_permit.so pam_self.so pam_winbind.so

    I INSTALLED XQUARTZ.

    SOMEONE HELP ME. CD-RW IS NOT WORKING SO I CAN'T REINSTALL snow leopard.
    GIVE ME PAM DIRECTORY.
     
  6. givemesudo macrumors newbie

    Joined:
    Nov 7, 2013
    #6
    i'm on snow leopard -Resolved.

    I repair it.

    Best regards.

    Givemesudo.
     

Share This Page