27 Jan
2022
27 Jan
'22
19:30
On Thu, Jan 27, 2022 at 9:16 PM Carlos E. R. <robin.listas@telefonica.net> wrote:
On 27/01/2022 19.50, joea- lists wrote:
On 27/01/2022 19.31, joea- lists wrote:
I find myself a bit brain fogged trying to setup an application to run as a system user rather than as the logged user.
With systemd it is something like that cat /etc/systemd/system/run-as-user.service [Unit] Description=Run service as user deepak DefaultDependencies=no After=network.target [Service] Type=simple User=deepak Group=admin ExecStart=/tmp/startup_script.sh TimeoutStartSec=0 RemainAfterExit=yes [Install] WantedBy=default.target Of course user and group should exist.