Transmission
Issue: Transmission Remote GUI 403 Forbidden
find / -xdev -name settings.json -exec ls -l {} \;
-rw-rw---- 1 debian-transmission debian-transmission 2407 Sep 2 2020 /etc/transmission-daemon/settings.json
-rw------- 1 debian-transmission debian-transmission 2249 Apr 14 11:23 /home/debian-transmission/.config/transmission-daemon/settings.json
lrwxrwxrwx 1 root root 38 Jul 16 2020 /var/lib/transmission-daemon/.config/transmission-daemon/settings.json -> /etc/transmission-daemon/settings.json
Symptom
Settings from /etc/transmission-daemon/settings.json don't using
grep '"rpc-whitelist"' /etc/transmission-daemon/settings.json /home/debian-transmission/.config/transmission-daemon/settings.json
/etc/transmission-daemon/settings.json: "rpc-whitelist": "127.0.0.1,192.168.*.*",
/home/debian-transmission/.config/transmission-daemon/settings.json: "rpc-whitelist": "127.0.0.1",
journalctl -u transmission-daemon.service -f
Oct 30 17:11:14 srv.domain.com transmission-daemon[312]: [2020-10-30 17:11:14.566] Using settings from "/home/debian-transmission/.config/transmission-daemon" (daemon.c:528)
Oct 30 17:11:14 srv.domain.com transmission-daemon[312]: [2020-10-30 17:11:14.566] Saved "/home/debian-transmission/.config/transmission-daemon/settings.json" (variant.c:1271)
Solution
https://github.com/transmission/transmission/blob/main/docs/Editing-Configuration-Files.md
Make changes in /home/debian-transmission/.config/transmission-daemon/settings.json
, when service is active and reload it.
# Make changes
vim /home/debian-transmission/.config/transmission-daemon/settings.json
# reload and restart
systemctl reload transmission-daemon
systemctl restart transmission-daemon
# Checking
# grep whitelist /home/debian-transmission/.config/transmission-daemon/settings.json
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": true,
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"rpc-whitelist-enabled": true,
# Testing
curl -I 192.168.1.11:9091
HTTP/1.1 301 Moved Permanently
Server: Transmission
Location: /transmission/web/
Date: Fri, 30 Oct 2020 15:44:41 GMT
Issue: umask
umask Get current value for active process:
Convert decimal value to octet for checking
Set value 2 to get "002":
sed -i 's/"umask".*/"umask": 2,/g' /home/debian-transmission/.config/transmission-daemon/settings.json
Checking result for new process
`bash
grep -i umask /proc/8777/status
Umask: 0002