So i was in teamviewer with my newbie developer who was trying to install some node js packages, npm install. he was having some issues with some libraries, he changed the permission of my mac sudo.
All the solutions I'm searching online are mostly related to ubuntu where they are suggesting this 1. Log out as the current user, then log back in as root. 2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo 3. Log out as root, then log back in as the current user.
which simply doesn't work in mac. any solution other than re-installing?
ls -leO /usr/bin/sudoshow after running the AppleScript? – Gordon Davisson Sep 10 '17 at 07:57which sudoto discover that my sudo is /usr/local/bin/sudo. I changed the paths in the script editor script accordingly and then it worked. – Justin Gould Mar 23 '22 at 14:31