Skip to content

Instantly share code, notes, and snippets.

@Maniacal
Created April 26, 2012 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maniacal/2502714 to your computer and use it in GitHub Desktop.
Save Maniacal/2502714 to your computer and use it in GitHub Desktop.
bash "Add nagios group to AllowGroups in sshd_config" do
user "root"
code <<-EOH
sed -i 's/\(^AllowGroups.*\)/\1 nagios/' /etc/ssh/sshd_config
/sbin/service sshd restart
EOH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment