Skip to content

Instantly share code, notes, and snippets.

@jbz
Created February 11, 2011 18:39
Show Gist options
  • Save jbz/822799 to your computer and use it in GitHub Desktop.
Save jbz/822799 to your computer and use it in GitHub Desktop.
########################################################################
### NOTICE: this file managed by chef; changes made here will be lost.
########################################################################
# ubuntu defaults, left here for compatibility
root ALL=(ALL) ALL
%admin ALL=(ALL) NOPASSWD:ALL
# Amazon EC2 ubuntu user - DO NOT REMOVE FROM EC2 NODES
# ubuntu user is default user in ec2-images.
# It needs passwordless sudo functionality.
ubuntu ALL=(ALL) NOPASSWD:ALL
<% if node.sudo.user_commands %>
# specific users/commands
<% node.sudo.user_commands.each do |recipe, acct| %>
<% acct.each do |user, cmd| %>
<%= user %> ALL=(root) <%= cmd %>
<% end %>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment