Skip to content

Instantly share code, notes, and snippets.

@djanatyn
Created April 2, 2015 21:17
Show Gist options
  • Save djanatyn/8c5a4c557a1eab537a93 to your computer and use it in GitHub Desktop.
Save djanatyn/8c5a4c557a1eab537a93 to your computer and use it in GitHub Desktop.
[jstrickland@ip-10-129-13-52]~% sudo ./migration_sudoers jstrickland
[sudo] password for jstrickland:
successfully added rsync permissions for jstrickland!
[jstrickland@ip-10-129-13-52]~% sudo ./migration_sudoers jstrickland
user found in sudoers, exiting.
[jstrickland@ip-10-129-13-52]~% sudo ./migration_sudoers rlpowell
successfully added rsync permissions for rlpowell!
[jstrickland@ip-10-129-13-52]~% sudo cat /etc/sudoers | tail -n 3
#includedir /etc/sudoers.puppet.d
jstrickland ALL = (ALL) NOPASSWD: /usr/bin/rsync
rlpowell ALL = (ALL) NOPASSWD: /usr/bin/rsync
[jstrickland@ip-10-129-13-52]~%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment