Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save todesstoss/8d4ce817ebfe4d102f61c7b9d915b81c to your computer and use it in GitHub Desktop.
Save todesstoss/8d4ce817ebfe4d102f61c7b9d915b81c 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment