MacMini M1 broken sudo So I manage to break sudo during this one day of owning MacMini M1. I manage to break sudo during editing /etc/pam.d/sudo. How I can edit it back? I tried using terminal in recovery mode. This file is not present there. su is turned off in macOS. Is reinstall the only way?
Update: I ended up with reinstalling Big Sur.
TARGET in the Makefile needs to be updated.
For example, I'm using an M1 Macbook Pro with macOS Big Sur 11.2.1, so I changed it to arm64-apple-macosx11.2