Last active
February 1, 2019 16:58
-
-
Save rmm5t/5f0d33b360bf5e543e8b9bee8d401340 to your computer and use it in GitHub Desktop.
Add wheel group to sudoers on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add current user to wheel group | |
sudo dseditgroup -o edit -a $USER -t user wheel | |
# Add wheel to sudoers | |
sudo su - | |
cd /etc | |
chmod 660 sudoers | |
vi /etc/sudoers | |
: <<'END_COMMENT' | |
# add the following | |
wheel ALL = (ALL) ALL | |
%wheel ALL = (ALL) NOPASSWD: ALL | |
END_COMMENT | |
chmod 440 sudoers | |
# check to make sure your user is part of the group | |
dscacheutil -q group -a name admin | |
dscacheutil -q group -a name wheel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment