Transmission-daemon run as user

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
dimi3
Posts: 15
Joined: Sun May 08, 2016 7:35 pm

Transmission-daemon run as user

Post by dimi3 »

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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Transmission-daemon run as user

Post by Fourdee »

You can set this in SystemD service:

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.
Post Reply