CharlieC3
8/26/2016 - 5:00 PM

Enable passwordless sudo

Enable passwordless sudo

#!/bin/bash

# Add the selected user to sudoers file
echo "## Allows people in group wheel to run all commands
%wheel	ALL=(ALL)	ALL

## Same thing without a password
%wheel	ALL=(ALL)	NOPASSWD: ALL" > /etc/sudoers.d/wheel_nopasswd