Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aashishrbhandari/8e6047073c7020c9a0e0ebdc6ebdd90b to your computer and use it in GitHub Desktop.
Save aashishrbhandari/8e6047073c7020c9a0e0ebdc6ebdd90b to your computer and use it in GitHub Desktop.
# Linux RBAC
# Providing User `user01` to run few commands as root user
user01 ALL = (root) NOPASSWD: /usr/bin/systemctl restart nginx
user01 ALL = (root) NOPASSWD: /usr/bin/ls /var/log/*
user01 ALL = (root) NOPASSWD: /usr/bin/tail /var/log/*
user01 ALL = (root) NOPASSWD: /usr/bin/tail * /var/log/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment