![transmission 关于ubuntu 16.04 LTS 写入权限问题](https://linux22.com/image/1064551/transmission%20%E5%85%B3%E4%BA%8Eubuntu%2016.04%20LTS%20%E5%86%99%E5%85%A5%E6%9D%83%E9%99%90%E9%97%AE%E9%A2%98.png)
我在 Ubuntu 16.04 LTS 服务器上使用 Transmission 2.94 时遇到问题。我使用本指南将指导您安装 Transmission。
- 我尝试了磁盘上的不同目录,但都出现了同样的问题。
- 我尝试重新安装,但没有帮助。
- 我尝试
sudo nano /etc/transmission-daemon/settings.json
在没有任何帮助的情况下进行编辑并与用户组合作。
在这个 cmd 上这是正确的吗?
sudo usermod -a -G debian-transmission myuser
现在我不知道该怎么办了。
拍完照片后我确实编辑了路径。
Permission denied (/home/thomas/media/hdd2/ubuntu-16.04.4-server-amd64.iso)
还是同样的问题
当连接到 SMB 并使用 Windows 上的 utorrent 下载到 Ubuntu 路径时,它会成功。
编辑:
thomas@ubuntu:~$ command ls -ld /home/thomas/media/hdd2{,/ubuntu-16.04.4-server-amd64.iso}
ls: cannot access '/home/thomas/media/hdd2/ubuntu-16.04.4-server-amd64.iso': No such file or directory
drwxrwsr-x 4 thomas thomas 4096 Jul 18 18:20 /home/thomas/media/hdd2
thomas@ubuntu:~$
编辑:
我确实尝试编辑 /etc/init.d/transmission-daemon 并将用户设置为“root”,但这也导致错误
答案1
您编写的命令会将您的用户添加到debian-transmission
组中。没错。但是,您需要注销并重新登录才能应用此设置,也许这就是问题所在。
也许有一个简单的文件夹权限。如果是我的想法,那么你需要执行以下操作:
(编辑:新目录)
更改下载文件夹的组所有权:
$ sudo chgrp -R debian-transmission /media/hdd2/tv
授予组成员写权限:
$ sudo chmod -R 770 /media/hdd2/tv
在中
settings.json
,更改下载文件夹的路径:"download-dir": "/media/hdd2/tv",
重新启动守护进程:
$ sudo service transmission-daemon stop
$ sudo service transmission-daemon start
答案2
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/media",
"download-limit": 100,
"download-limit-enabled": 0,
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/var/lib/transmission-daemon/Downloads",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 1,
"peer-congestion-algorithm": "",
"peer-id-ttl-hours": 6,
"peer-limit-global": 200,
"peer-limit-per-torrent": 50,
"peer-port": 51413,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": false,
"peer-socket-tos": "default",
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"prefetch-enabled": true,
"queue-stalled-enabled": true,
"queue-stalled-minutes": 30,
"ratio-limit": 2,
"ratio-limit-enabled": false,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-host-whitelist": "",
"rpc-host-whitelist-enabled": true,
"rpc-password": "{018b0d1476c793d3b8a88Vppg",
"rpc-port": 9091,
"rpc-url": "/transmission/",
"rpc-username": "thomas",
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"rpc-whitelist-enabled": true,
"scrape-paused-torrents-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"seed-queue-enabled": false,
"seed-queue-size": 10,
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 100,
"speed-limit-up-enabled": false,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 2,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"utp-enabled": true
}