Unable to use sudo on OSX, getting sudo: unknown uid 501: who are you?
19,826
FWIW - I simply had to install (via restart) the automatic updates that were downloaded and it was fixed. Logging out and back in didn't work.
It appears that simply restarting iterm2
may be sufficient, too, so that's probably a better place to start.
Author by
kashkar
Updated on June 15, 2022Comments
-
kashkar almost 2 years
When I type
sudo <command>
in terminal I getsudo: unknown uid 501: who are you?
and when I typesu
I getsu: who are you?
I think I must have changed super user permissions somehow on my personal machine. I'm not able to use sudo commands now, and I've not been able to find any helpful solutions. Do I have to do something with my
/etc/passwd
file? Can I even modify that?