修改transmission-daemon用户

原创
2017/01/25 22:09
阅读数 5.9K
  1. 说明 在debian安装了transmission-daemon后, 默认是以"debian-transmission"启动. 下载的文件也是属于该用户的. 这并不合我意, 需要改成使用我的用户启动.
  2. 安装transmission
$ sudo apt-get install transmission-daemon
$ service transmission-daemon stop
  1. 修改软件配置
$ sudo vi /etc/transmission-daemon/settings.json
{   # 下载配置
    "download-dir": "/media/repo/download",
    "download-limit": 100,
    "download-limit-enabled": 0,
    "download-queue-enabled": true,
    "download-queue-size": 5,
    # 远程安全配置
    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "{f33f59e1ccabf6e50af23c94b8a144e7b95f5421U5l4f8jW",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "transmission",
    "rpc-whitelist": "127.0.0.1",
    "rpc-whitelist-enabled": false
}
  1. 修改启动配置
$ sudo vi /etc/init.d/transmission-daemon
# 修改USER变量为需要的用户名
USER=caspar
  1. 修改文件权限
$ sudo chown USER:USERGROUP /media/repo/download
$ sudo chown USER:USERGROUP /etc/transmission-daemon/settings.json
$ sudo chown -R USER:USERGROUP /var/lib/transmission-daemon
  1. 启动transmission
$ sudo service transmission-daemon start
展开阅读全文
打赏
0
0 收藏
分享
加载中
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部