I have some systemd services that I set up to run as a non-root user. I can do a 'status' on the services as that user, but I can't stop or start them without being prompted for the 'root' password. Is there any way to set this up?
In my .service definition files I do have the following...
...and the services are running as that user, but I can't start or stop them...
Any ideas?
Edit: Looking for a solution that doesn't use [tt]sudo[/tt].
In my .service definition files I do have the following...
Code:
[Service]
User=sensor
Group=sensor
...and the services are running as that user, but I can't start or stop them...
Code:
$ [b]systemctl stop sensor-08.service[/b]
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to stop 'sensor-08.service'.
Authenticating as: root
Password:
Any ideas?
Edit: Looking for a solution that doesn't use [tt]sudo[/tt].