have trouble with transmission daemon. I need to write files to external hdd, but always get Error: Permission denied

Some guys write something about auto-mounting bug, but I can't mount it each time by hands (computer have no keyboard and screen, and there is different peoples can remove HDD and insert it back).

Also, I try to change USER constant from deabian-transmission to pi and to root inside of /etc/init.d/transmission-daemon file, but nothing happen:

ps -ef | grep trans


debian-+ 4599   1  15:52 ? 00:00:00 /usr/bin/transmission-daemon -f

I'm sure that this line display transmission deamon porcess, because, it disappear after sudo service transmission-daemon stop.

So my question is - how I can change this user to root? And yes, I'm absolutely do not take care about security risks about it.


transmission-daemon does not use the USER variable in /etc/init.d/transmission-daemon if your system is using systemd.

systemd is telling the transmission-daemon to run as the debian-transmission user in the service file /lib/systemd/system/transmission-daemon.service.

Starting state:

deltik@box59:~$ ps -ef | grep transmission | grep -v grep
debian-+  8140     1  0 07:17 ?        00:00:00 /usr/bin/transmission-daemon -f --log-error

This is the proper way to override the service to start it under the root user:

  1. sudo systemctl edit transmission-daemon.service
  2. Add the following contents:

  3. Save the file.

    • nano: Ctrl+x, y, Enter
    • vi/vim: Escape, :, w, q, Enter

      Note: This creates the file /etc/systemd/system/transmission-daemon.service.d/override.conf

  4. sudo systemctl daemon-reload
  5. sudo systemctl restart transmission-daemon.service

Now, transmission-daemon is running as the root user:

deltik@box59:~$ ps -ef | grep transmission | grep -v grep
root      8443     1  0 07:18 ?        00:00:00 /usr/bin/transmission-daemon -f --log-error
  • sorry man, I forgot to test it on weekend. I will do it today, and write response.
    – degr
    Feb 13 '17 at 6:56
  • thanks it work, now process started as root user, but web interface not work anymore, lol
    – degr
    Feb 13 '17 at 18:01
  • 1
    Finally I open /etc/passwd and set 0:0 to debian-transmission. Now debian-transmission is root user, and look like it work.
    – degr
    Feb 13 '17 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.