Skip to content

Instantly share code, notes, and snippets.

@n1mh
Last active July 8, 2020 20:49
Show Gist options
  • Save n1mh/f8869c93484335f3dbeb6abc4bc6307e to your computer and use it in GitHub Desktop.
Save n1mh/f8869c93484335f3dbeb6abc4bc6307e to your computer and use it in GitHub Desktop.
Changing user for transmission-daemon in raspberry pi
#!/bin/bash
sudo /etc/init.d/transmission-daemon stop
sudo chown -R pi:pi /etc/transmission-daemon
sudo rm -rf ~pi/.config/transmission-daemon
sudo mv /etc/transmission-daemon ~pi/.config/
sudo ln -s ~pi/.config/transmission-daemon /etc/transmission-daemon
sudo chown pi:pi /etc/default/transmission-daemon
sudo mv /etc/default/transmission-daemon ~pi/.config/transmission-daemon/transmission-daemon-default
sudo ln -s ~pi/.config/transmission-daemon/transmission-daemon-default /etc/default/transmission-daemon
sudo chown pi:pi /etc/init.d/transmission-daemon
sudo sed -i 's/USER=debian-transmission/USER=pi/g' /etc/init.d/transmission-daemon
sudo mv /etc/init.d/transmission-daemon ~pi/.config/transmission-daemon/transmission-daemon-init
sudo ln -s ~pi/.config/transmission-daemon/transmission-daemon-init /etc/init.d/transmission-daemon
sudo /etc/init.d/transmission-daemon start
@Abushawish
Copy link

OMG, I could kiss you! Thank you :D! I had to combine it with this: https://forum.transmissionbt.com/viewtopic.php?t=14836#p75819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment