[systemd-devel] Restarting a service as user instead as root

Reindl Harald h.reindl at thelounge.net
Mon Aug 13 09:49:19 UTC 2018



Am 13.08.2018 um 11:28 schrieb Cecil Westerhof:
> I have a service that is run as a different user as root. But only root
> can restart the service. Is there a way to make 'systemctl restart' work
> for the user that runs the service?

not for system services

just because a service binary drops privileges to a different user is no
indication that this user is allowed to control the service itself - for
security the opposite is true


More information about the systemd-devel mailing list