unhappy sudo chown user /

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

  1. antoniomax macrumors newbie

    Apr 2, 2009

    have mistaken performed a

    sudo chown myuser /

    on my macbook...
    now it claims it cannot load several kexts like:

    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.

  2. coolbits macrumors member

    Nov 1, 2006
    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

    Apr 2, 2009
    Already tryied that.
    Doesnt work either...
    Forgot something....ive used

    sudo chown -R myuser /

    was recursive :(
  4. BlueRevolution macrumors 603


    Jul 26, 2004
    Montreal, QC
  5. Chrysaor macrumors 6502

    May 16, 2006
    Either boot into single user mode (-s) if you can or boot into single user mode from dvd (-s rd=diskXsY).
    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