Skip to content

Instantly share code, notes, and snippets.

@aerickson
Created July 28, 2011 07:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerickson/1111135 to your computer and use it in GitHub Desktop.
Save aerickson/1111135 to your computer and use it in GitHub Desktop.
making sudo work on lion
from: http://forums.macrumors.com/showthread.php?t=447812
///////////////
Reboot into single user mode (hold Option S while booting until it switches to text mode)
At the single user prompt, type: /sbin/fsck -fy
This checks the filesystem integrity
Then type: /sbin/mount -wu /
This mounts the root filesystem as read/writable.
Next type: /bin/chmod 1775 /
This will correct the permissions for your / directory
Type: /bin/sync
This will make sure the change is written to the filesystem
Type: exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment