Skip to content

Instantly share code, notes, and snippets.

@midnight-wonderer
Created June 30, 2020 01:01
Show Gist options
  • Save midnight-wonderer/10c80dec5c7f5e7c3f7b609694991c47 to your computer and use it in GitHub Desktop.
Save midnight-wonderer/10c80dec5c7f5e7c3f7b609694991c47 to your computer and use it in GitHub Desktop.
Allow a user to run privilege commands
# Cmnd alias specification
Cmnd_Alias FIREWALL = /usr/sbin/ufw
# User privilege specification
username ALL=NOPASSWD: FIREWALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment