我遇到了一件非常奇怪的事情。Transmission-daemon 一直告诉我
“权限被拒绝/home/transmission/downloads/..”(.. = torrent 文件夹和文件的名称)
我创建了这个文件夹传输:
sudo mkdir /home/transmission
此后我在里面创建了文件夹:
sudo mkdir /home/transmission/incomplete
sudo mkdir /home/transmission/downloads
首先通过创建以下文件夹来授予权限debian-transmission
:
sudo chgrp -R debian-transmission:debian-transmission /home/transmission
将我自己添加到此群组:
sudo usermod -a -G debian-transmission kurt
但仍然没有访问权限,我可以编辑并将文件添加到下载文件夹,所以我将我的组添加kurt
到debian-transmission
。
sudo usermod -a -G kurt debian-transmission
权限被拒绝...嗯。好的,那么chmod
这个文件夹就变成 777 了。
sudo chmod 777 -R /home/transmission
权限被拒绝..我能做的最后一件事:
sudo usermod -a -G root debian-transmission
但什么都没用。我知道这不是一个好方法。但我只是想测试一下这是否可行。每次权限更改后我都会重新启动传输服务以确保万无一失。一些额外的信息:
ps aux | grep transmission
output:
117 17319 0.4 0.4 397624 10196 ? Ssl 18:33 0:05 /usr/bin/transmission-daemon -f --config-dir /var/lib/transmission-daemon/info
kurt 17767 0.0 0.0 13580 900 pts/0 S+ 18:52 0:00 grep --color=auto transmission
ps -ef | grep transmission
117 17319 1 0 18:33 ? 00:00:05 /usr/bin/transmission-daemon -f --config-dir /var/lib/transmission-daemon/info
kurt 17827 17229 0 18:53 pts/0 00:00:00 grep --color=auto transmission
groups debian-transmission
debian-transmission root kurt
groups kurt
kurt adm cdrom sudo dip plugdev lpadmin sambashare debian-transmission
谁能对我的问题有好的解决办法?
答案1
尝试这个:
mkdir /your_path/progress
mkdir /your_path/completed
sudo usermod -a -G debian-transmission your_user
chgrp debian-transmission /your_path/progress
chgrp debian-transmission /your_path/completed
chmod 770 /your_path/progress
chmod 770 /your_path/completed
sudo service transmission-daemon stop
sudo adduser your_user debian-transmission
sudo nano /etc/init.d/transmission-daemon
sudo chown your_user -R /var/lib/transmission-daemon/info/
sudo chown your_user -R /your_path/progress
sudo chown your_user -R /your_path/completed
sudo chown your_user -R /etc/transmission-daemon/settings.json
并在文件中进行更改:sudo nano /etc/transmission-daemon/settings.json
"rpc-whitelist": "127.0.0.1" > "rpc-whitelist": "*.*.*.*",
"rpc-password": "password" > "rpc-password": "your_password",
"download-dir": "/var/lib/transmission-daemon/downloads" > "download-dir": "/your_path/completed"
"incomplete-dir": "/var/lib/transmission-daemon/downloads" > "incomplete-dir": "/your_path/progress"
只需重新启动守护进程:
service transmission-daemon start
答案2
经过几个小时的反复试验......我所做的是:
1.- 编辑 /etc/init.d/transmission-daemon 并将“USER”变量设置为“root”以解决文件夹权限问题
2.- 编辑 /etc/default/transmission-daemon 并将“CONFIG_DIR”变量设置为“/etc/transmission-daemon/”,因为我不喜欢将配置文件放在 /var 中
答案3
如果我遇到这种情况。
基本上,您需要整个存储路径的目录列表权限。我刚刚将 r+x 添加到其他 (chmod o+rx /partial/path)。