20 Apr 2021 09:23 AM - last edited on 05 May 2021 04:38 AM by laima_vainina
Is-it possible to restart the activegate service without root access, using a script executed by a dynatrace user for example ?
I tried this but no luck :
# /home/dynatrace/product/dynatrace/gateway/dynatracegateway start
20/04 18:09:14 (188.8.131.5210329-162333) This script cannot be launched directly.
20/04 18:09:14 (184.108.40.20610329-162333) Use the appropriate systemctl command: 'systemctl start|stop|status dynatracegateway'
20/04 18:09:14 (220.127.116.1110329-162333)
Is there any workaround ?
Thanks for your help.
Solved! Go to Solution.
I don't think there is - you would have to open up shell for the dtuserag.
We use sudo for the individual systemctl commands (start/stop/restart) at customers.
LIke @Julius_Loman says, you would have to set up and use sudo to allow certain user(s) run specific commands: Run only Specific Commands with sudo in Linux - kifarunix.com
ok I will use the sudo way. Thanks guys for your help !