Skip to content
Snippets Groups Projects
Commit 0898e2fb authored by sveseli's avatar sveseli
Browse files

add sudo rules template

parent 61022cc7
No related branches found
No related tags found
No related merge requests found
## DM user sudo functions
## All strings starting with DM_* have to be replaced with actual values
Host_Alias HOST=DM_HOSTNAME
User_Alias USER=DM_SYSTEM_USER
Cmnd_Alias SETFACL=/usr/bin/setfacl -m group\:*\:rx DM_DATA_DIR/*
Cmnd_Alias USERMOD=/usr/sbin/usermod -a -G * *
Cmnd_Alias GROUPADD=/usr/sbin/groupadd *
USER HOST=(root) NOPASSWD: SETFACL,USERMOD,GROUPADD
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment