'How to make service not require superuser password entry?
I am doing the command service cron start in the shell which requires a superuser password entry. I am the root user on this (OracleVB running Ubuntu).
Is there a way to add this command to an approved user task where I can just type service cron start and not be prompted for a password?
Solution 1:[1]
Starting and stopping system services should only be possible for the root user.
You might want to enable your service to start at boot with systemctl enable --now yourservice instead.
You can always use systemctl status yourservice to check if it is currently running.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | mashuptwice |
