Hi..
Currently Transmission-daemon runs as root...i would like to run it with different user, but cant find where to set this up...by default i dont like to run stuff with root.
Can someone point me to right direction ?
Thank you in advance.
Transmission-daemon run as user
Re: Transmission-daemon run as user
You can set this in SystemD service:
Change User=BobTheBuilder as needed, then paste all into term
Change User=BobTheBuilder as needed, then paste all into term
Code: Select all
cat << _EOF_ > /etc/systemd/system/transmission-daemon.service
[Unit]
Description=Barebones transmission-daemon service
DefaultDependencies=no
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/transmission-daemon --config-dir /var/lib/transmission-daemon/info
ExecStop=/usr/bin/killall -w transmission-daemon
StandardOutput=tty
User=BobTheBuilder
[Install]
WantedBy=multi-user.target
_EOF_
#Update SystemD and restart services
systemctl daemon-reload
dietpi-services restart
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.