Sure, you might want to edit /etc/systemd/system/webhook.service to specify the user, for example a dedicated webhook user created for these tasks only:
[Service]
User=webhook
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice. Thanks for this.
But, is this secure?
The hook scripts in
execute-commandrun asrootwhen using weebhook as a service (systemd).Sure, you might want to edit
/etc/systemd/system/webhook.serviceto specify the user, for example a dedicatedwebhookuser created for these tasks only: