Skip to content

Instantly share code, notes, and snippets.

View parthiv-d's full-sized avatar

Parthiban D parthiv-d

  • 22:38 (UTC +05:30)
View GitHub Profile
@juliyvchirkov
juliyvchirkov / macos-sudo-nopasswd.sh
Last active August 18, 2025 20:21
bash: sudo without a password on macOS
#!/bin/bash
#
# Enable nopasswd mode for sudo on macOS from the userspace in fast and totally non-interactive way
#
# Type the password last time to apply the new mode and forget it for any console task for ages
# Use the rollback to restore password protection
#
# Developed and tested by https://juliyvchirkov.github.io/ under the MIT license on macOS Big Sur 11.2.0
#
# Get latest version at https://gist.github.com/juliyvchirkov/3ca76582ed6b6a8366c9e7d60644960d