20 Apr 2021 05:23 PM - last edited on 05 May 2021 12:38 PM by laima_vainina
Hi guys
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 (1.213.142.20210329-162333) This script cannot be launched directly.
20/04 18:09:14 (1.213.142.20210329-162333) Use the appropriate systemctl command: 'systemctl start|stop|status dynatracegateway'
20/04 18:09:14 (1.213.142.20210329-162333)
Is there any workaround ?
Thanks for your help.
Abder
Solved! Go to Solution.
20 Apr 2021 09:16 PM
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.
21 Apr 2021 10:46 PM
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
22 Apr 2021 09:09 AM
ok I will use the sudo way. Thanks guys for your help !