Changing Transmission Daemon User
It’s easy. In my case, I choose www-data because of the owner of the shared files. So, this is what you gonna do:
/lib/systemd/system/transmission-daemon.service
[Unit]
Description=Transmission BitTorrent Daemon
Wants=network-online.target
After=network-online.target
[Service]
User=transmission-daemon www-data
Type=notify simple
ExecStart=/usr/bin/transmission-daemon -f --log-level=error
ExecReload=/bin/kill -s HUP $MAINPID
NoNewPrivileges=true
MemoryDenyWriteExecute=true
ProtectSystem=true
PrivateTmp=true
[Install]
WantedBy=multi-user.target
Reload the service after edit by running sudo systemctl daemon-reload
Change the permissions of /etc/transmission-daemon and the location of the config files transmission-daemon path to your new user path. Mine is /var/www.
Be sure all owners are set to your user.
Start the service.
Filed under: Uncategorized - @ 2024-09-24 09:26