Skip to content

Instantly share code, notes, and snippets.

@say-kaj
Last active March 24, 2025 17:10
Show Gist options
  • Select an option

  • Save say-kaj/8c9df71657e6297879f7b73f2e7446ea to your computer and use it in GitHub Desktop.

Select an option

Save say-kaj/8c9df71657e6297879f7b73f2e7446ea to your computer and use it in GitHub Desktop.
Enable sudo without a password on MacOS

Enable sudo without a password on MacOS

I upgraded macOS to the next major version and I had to search for how to re-enable password-less sudo’ing again (a real déjà vu, doing this every update,... so finally wrote it down where I find it :O)

  1. edit /etc/sudoers

sudo visudo

  1. Then find the admin group permission section:

%admin ALL = (ALL) ALL

  1. Change to add NOPASSWD:

%admin ALL = (ALL) NOPASSWD: ALL

To safe in visudo -> :wq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment