Created
June 19, 2023 06:45
-
-
Save aashishrbhandari/8e6047073c7020c9a0e0ebdc6ebdd90b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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