I'm running Ubuntu 18.04.2 LTS, and have a fresh install of transmission-daemon
. It runs fine as a Systemd service. But when I try to run it standalone (with the service stopped), I see:
~ ⌘ sudo -u debian-transmission transmission-daemon -f --log-error --log-info --log-debug
[2019-05-14 11:53:19.167] Couldn't read "/home/jason/.config/user-dirs.dirs": Permission denied
[2019-05-14 11:53:20.419] Couldn't create "/home/jason/.config/transmission-daemon": Permission denied (file-posix.c:189)
[2019-05-14 11:53:20.419] Couldn't create "/home/jason/.config/transmission-daemon": Permission denied (file-posix.c:189)
[2019-05-14 11:53:20.419] Couldn't create "/home/jason/.config/transmission-daemon": Permission denied (file-posix.c:189)
[2019-05-14 11:53:20.419] Transmission 2.92 (14714) started (session.c:740)
[2019-05-14 11:53:20.419] Couldn't read "/home/jason/.config/transmission-daemon/stats.json": No such file or directory (utils.c:238)
[2019-05-14 11:53:20.419] Couldn't read "/home/jason/.config/transmission-daemon/stats.benc": No such file or directory (utils.c:238)
Note that ~
does resolve to /home/jason
as the user jason
(me). But I'm running it as the user debian-transmission
. So why is Transmission trying to access "my" user directories? How can I stop it doing that?
sudo
to change$HOME
to that of the target user, you need to add-H
I think? – steeldriver May 14 '19 at 04:43