Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

paddyhazard

macrumors regular
Original poster
Jan 27, 2010
110
0
London
Sometime in the last couple of weeks something happened that completely broke my sudo command. Now everytime I try to 'sudo' anything it just comes up with a blank line. Nothing I can type into terminal (or iterm) does anything and I need to close the window.

Screen%20Shot%202017-04-11%20at%208.23.19%20am.png


I've got backups but don't know what files would have been broken and don't just want to reset my mac to an arbitrary point in time and loose other work. I mostly just use sudo to edit /private/etc/hosts file and somehow now it's letting me edit and save that without sudo.

I tried creating a new admin user and sudoing from that but it's the same.

I've tried following advice on various forums but none of them are working and I'm getting to the point I'm probably doing more damage to my mac. Anyone got any ideas of how to fix it or any files I can drag across from my backup that might fix it?

Thanks
[doublepost=1491871154][/doublepost]I tried

which sudo

and it comes up with /usr/bin/sudo which seems to be a valid file name
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.