Today I Learned
🔓 Sharing is Caring: How a Simple Sudo Question Led to Better Solutions
One of the fun discoveries of blogging is finding your article in search results while trying to solve a problem.
A few weeks ago, I upgraded my Macs to macOS to Sonoma, but I hadn’t yet re-enabled passwordless authentication via sudo. If this were a server in the cloud, I would approach it differently, but on my laptop, it’s a different story, and I can skip re-typing my password.
I stumbled on my TIL: Enable sudo without a password on MacOS post from 2022 when I was searching for a quick fix.
I also posted on Mastodon about this, which led to Anthony’s helpful suggestion that I could instead use Touch ID which I liked a lot.
I wish I could use Touch ID, but I often use SSH and Remote Desktop. Touch ID will only work if my finger is there. It’s still an excellent suggestion for anyone seeking a more secure way to assume sudo access.
Dan Ryan pointed me to a better solution than my existing workaround, which doesn’t get overwritten every major macOS update.
Helpful suggestions like these are why I like to think out loud and share these thoughts on Mastodon.
Tuesday July 9, 2024