Starting systemd service as non-root
Hello,I was wondering can I configure .service file to be started,stopped,restarted without requiring root with the systemctl command?
|
as far as I know systemctl can only be executed by root. I don't know what do you want to achieve, but probably need to find another way to solve your issue.
|
systemd itself will always need root privileges to start, but there's such a thing as user services:
https://wiki.archlinux.org/index.php/Systemd/User iirc the initial setup still requires root, though. |
as far as I know, system checks for remote logins before light. this is said to be done to allow developers to easily do "remote debugging"
yes you can do it. it is simple as changing permissions. if you don't already know how it would be too difficult to fully describe in a reply post. there are many articles about starting up OS services and how to make them run as a particular user with instructions what to do exactly |
If you want to start a specific service as a user probably sudo can help you. But you still need to tell us what do you really need.
|
Quote:
|
Quote:
Quote:
But probably someone can construct a helper script to implement it. |
All times are GMT -5. The time now is 02:31 PM. |