Reply to post: chmod 0000 `which sudo`

Get root on an OS X 10.10 Mac: The exploit is so trivial it fits in a tweet

dbtx Bronze badge

chmod 0000 `which sudo`


Then you just enter a root shell with "su -" and (gasp) type root's password when you need to do something, and the pretty # is there to remind you that the safety's off.

(P.S. to be honest, I "sudo -i" all the time like a proper hypocrite, but then I'm not using any Apple nonsense. I might have a copy of OS9 but that particular iMac doesn't turn on)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019