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

2018-08-13 Thread Simon McVittie
On Mon, 13 Aug 2018 at 12:44:48 +0200, Cecil Westerhof wrote: > I tried to put this in: >     /etc/polkit-1/rules.d/10-auth.rules ... > I am using Debian 9. Debian uses an old version of polkit (with most of the changes from newer versions backported) due to maintainability concerns about the use

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

2018-08-13 Thread Cecil Westerhof
2018-08-13 12:52 GMT+02:00 Michael Chapman : > On Mon, 13 Aug 2018, Cecil Westerhof wrote: > > 2018-08-13 11:51 GMT+02:00 Michael Chapman : > > > > > On Mon, 13 Aug 2018, Cecil Westerhof wrote: > > > > I have a service that is run as a different user as root. But only > root > > > can > > > >

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

2018-08-13 Thread Michael Chapman
On Mon, 13 Aug 2018, Cecil Westerhof wrote: > 2018-08-13 11:51 GMT+02:00 Michael Chapman : > > > On Mon, 13 Aug 2018, Cecil Westerhof wrote: > > > 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'

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

2018-08-13 Thread Cecil Westerhof
2018-08-13 11:51 GMT+02:00 Michael Chapman : > On Mon, 13 Aug 2018, Cecil Westerhof wrote: > > 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? > > You

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

2018-08-13 Thread Tomasz Torcz
On Mon, Aug 13, 2018 at 11:51:46AM +0200, Silvio Knizek wrote: > Am Montag, den 13.08.2018, 11:28 +0200 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 > >

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

2018-08-13 Thread Cecil Westerhof
2018-08-13 11:28 GMT+02:00 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? > Thanks for the answers. At the moment it is not very

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

2018-08-13 Thread Michael Chapman
On Mon, 13 Aug 2018, Cecil Westerhof wrote: > 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? You could simply add some Sudo rules allowing the user to perform

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

2018-08-13 Thread Silvio Knizek
Am Montag, den 13.08.2018, 11:28 +0200 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? Hi, you can either define a sudo-rule or

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

2018-08-13 Thread Reindl Harald
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