Greetings all,
I’m wondering if it’s possible to run a Systemd service as a Windows user on a domain joined Ubuntu 18.04 machine or indeed if there’s a better way to achieve what I’m looking to do?
I have an Ubuntu VM that’s joined to a Windows Server 2016 domain, this Ubuntu machine runs some software as a service via Systemd that generates a bunch of large files (40-60GB each) which I would like to end up on a Samba share for archiving.
The software has an option for where the output is stored but it doesn’t have write permission to the Samba share as the user Systemd runs it under larg-user
I notice that in Systemd there is a User and Group field but no password so I’m not sure how I would specify the credentials for the domain user?
Does anyone have any bright ideas?
Thanks in advance
Steve
[Unit]
Description=Location Argument Daemon
After=network.target
[Service]
User=larg-user
Group=larg
Type=simple
ExecStart=/usr/bin/mono /opt/LARG/LARG.exe -nobrowser
TimeoutStopSec=50
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target