Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

View file
namesudofile.txt

Code Block
User_Alias DATICAL_USER=%datical 
Cmnd_Alias       DATCMD = /usr/bin/datical-control troubleshoot,\
                /usr/bin/datical-control logs datical-service --follow,\
                /usr/bin/datical-control logs proxy --follow,\
                /usr/bin/datical-control logs keycloak --follow,\
                /usr/bin/datical-control service restart datical-service,\
                /usr/bin/datical-control service restart proxy,\
                /usr/bin/datical-control service status datical-service,\
                /usr/bin/datical-control service start datical-service,\
                /usr/bin/datical-control service stop datical-service,\
                /usr/bin/datical-control service start,\
                /usr/bin/datical-control service stop,\
                /usr/bin/datical-control troubleshoot,\
                /usr/bin/systemctl restart datical-service,\
                /usr/bin/systemctl restart datical-proxy,\
                /usr/bin/systemctl restart datical-keycloak,\
                /usr/sbin/service datical-service restart,\
                /usr/sbin/service datical-proxy restart,\
                /usr/sbin/service datical-keycloak restart,\
                /usr/sbin/service datical-proxy start,\
                /usr/sbin/service datical-proxy stop,\
                /usr/bin/find /etc/ -name datical-service*
                     

DATICAL_USER    ALL=NOPASSWD: DATCMD