Just a second ago I logged in as guest in my mom’s 13″ 2009 MacBook (model MacBook6,1) and I noticed that Dock is missing its background.
— Category: Solutions —
# /sbin/fsck -fy # /sbin/mount -uw / # launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist # passwd root # exit
Mac OS X Tiger – Snow Leopard
# /sbin/fsck -fy # /sbin/mount -uw / # launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist # dscl . > passwd root > exit # exit
Many people have been wondering what would happen if they forgot their admin password in Mac OS X. There is a solution: you have to own a Mac OS X Install DVD which provides a Password Utility application. But what if you don’t have one? There is a solution.
Important Note: This works only if there is no Firmware Password set. Firmware Password blocks the ability to boot your computer in single-user mode.
All you have to do is turn on your computer holding
CMD + S. This will boot your Mac in Single-User Mode. Next, you have to wait a second while kernel will load command-line interface. It there is
:/ root# line, you’re ready to go!
Today I wanted to install some mkv tools via macports and received strange response:
$ sudo port install mkvtoolnix sudo: can't open /private/etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting
$ ls -lad it turned out that something is wrong with boot volume permissions. Theese are corect ones:
$ ls -lad / /private /private/etc d--xrwxr-t+ 36 root wheel 1292 25 sty 12:34 /
This problem cannot be solved by simple Repair Permissions in Disk Utility. The only way to solve it is booting your computer in Single-User Mode (hold cmd+s while booting) and entering theese commands:
# /sbin/fsck -fy # /sbin/mount -wu / # /bin/chmod 1775 / # /bin/sync # exit
Everything should work now. :)