unhappy sudo chown user /

Discussion in 'macOS' started by antoniomax, Apr 2, 2009.

  1. antoniomax macrumors newbie

    Joined:
    Apr 2, 2009
    #1
    hi

    have mistaken performed a

    sudo chown myuser /

    on my macbook...
    now it claims it cannot load several kexts like:
    /system/library/extensions/system.kext/plugins/mach.kext
    /system/library/extensions/system.kext/plugins/libkern.kext
    /system/library/extensions/system.kext/plugins/unsuported.kext
    /system/library/extensions/system.kext/plugins/bsdkernel.kext
    /system/library/extensions/system.kext/plugins/iokit.kext
    /system/library/extensions/autofs.kext

    i need to repair the default permissions....but disk utility already said i cannot repair the disk due to this error:

    the underlying task reported failure on exit

    already tried to repair using the install dvd too.

    found on the web this procedure:

    Boot off the OS X CD (reboot, hold C while booting).
    The installer will load up, go to Utilities in the menu and run Terminal.
    Type df and look for the drive that has your Mac system mounted---you'll have to unmount this. On my MacBook Pro, it was /dev/disk0s2.
    Type umount /dev/disk0s2, replacing disk0s2 with whatever disk your OS lives on.
    Type fsck_hfs -r /dev/disk0s2. If you umounted the wrong thing, it will complain that you can't repair a mounted drive. Go back and umount the right thing and repeat this step.
    (they forgot to add the step to re-mount...but its ok..)

    and this one:

    Single user mode (boot with -s) and then type
    fsck_hfs -r /dev/volumename

    will any of those save me from a archive and install?
    HELP!! Those warnings cannot be good... but the system is booting and working fine till now.

    thanks
     
  2. coolbits macrumors member

    Joined:
    Nov 1, 2006
    #2
    Boot from DVD, go to disk utility, click on your disk and click repair permissions...
    That should do it.
     
  3. antoniomax thread starter macrumors newbie

    Joined:
    Apr 2, 2009
    #3
    Already tryied that.
    Doesnt work either...
    Forgot something....ive used



    sudo chown -R myuser /

    was recursive :(
     
  4. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
  5. Chrysaor macrumors 6502

    Joined:
    May 16, 2006
    #5
    Either boot into single user mode (-s) if you can or boot into single user mode from dvd (-s rd=diskXsY).
    Use:
    mount -uw /
    chown -R root:wheel /System/Library/Extensions
    chmod -R 755 /System/Library/Extensions
    touch /System/Library/Extensions

    Its pretty easy to do, I pressed enter after / accidentally before.
     

Share This Page