You are not logged in.

#1 2019-02-22 06:47:29

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Yet another "Transmission Error: Permission Denied" thread

Seriously wtf.

https://wiki.archlinux.org/index.php/Transmission

I run the daemon through systemctl, my config is set from /var/lib/.config/transmission-daemon/settings.json, I have /home/access/Downloads/torrents as my download directory, incomplete downloads folder is disabled.

I have tried the following combinations of permissions on my folder

drwxrwxrwx  3 transmission transmission      4096 Feb 22 16:13  torrents
drwxrwxrwx  3 access transmission                4096 Feb 22 16:13  torrents

I got it working using an external directory, but that folder isn't even owned by the transmission group: it's owned by the http user and group.

Does anybody know why this isn't working?

Thanks

Offline

#2 2019-02-22 11:14:27

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: Yet another "Transmission Error: Permission Denied" thread

Hello there,

What user are you running Transmission as?

Best Regards

Offline

#3 2019-02-23 12:41:53

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: Yet another "Transmission Error: Permission Denied" thread

Hey @bugsmanagement,

My apologies, I should have clarified... transmission-da process is absolutely running as transmission user.

output of

 ps aux | grep transmission 

gives the following output:

transmi+   608  0.0  0.0 184264  7764 ?        Ssl  22:22   0:01 /usr/bin/transmission-daemon -f --log-error
access   31927  0.0  0.0   3176   888 pts/0    S+   23:36   0:00 grep transmission

I can assume from your question, and this subsequent response, that the world hasn't turned inside out and a bug report is in order?

MM25

Last edited by medicineman25 (2019-02-23 12:42:12)

Offline

#4 2019-02-23 13:00:44

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: Yet another "Transmission Error: Permission Denied" thread

No, what is output of the following commands.

ls -ld /
ls -ld /home
ls -ld /home/access/
ls -ld /home/access/Downloads/
ls -ld /home/access/Downloads/torrents

Seems to me, as it's common, something is broken in the chain?

Offline

#5 2019-02-23 13:16:00

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: Yet another "Transmission Error: Permission Denied" thread

bugsmanagement wrote:

No, what is output of the following commands.

ls -ld /
ls -ld /home
ls -ld /home/access/
ls -ld /home/access/Downloads/
ls -ld /home/access/Downloads/torrents

Seems to me, as it's common, something is broken in the chain?

This I thought also, yet I have just remembered one more detail: I also had issues even after adding the user 'access' to the transmission group. Also as stated above, the external device is not even in the transmission group.

$ ls -ld /
drwxr-xr-x 17 root root 4096 Jan 12 08:21 /
$ ls -ld /home
drwxr-xr-x 4 root root 4096 Jan 13 08:24 /home
$ ls -ld /home/access
drwx------ 31 access access 4096 Feb 23 23:35 /home/access
$ ls -ld /home/access/Downloads
drwx------ 6 access access 16384 Feb 23 21:23 /home/access/Downloads
$ ls -ld /home/access/Downloads/torrents
drwxrwxr-x 3 transmission transmission 4096 Feb 22 16:13 /home/access/Downloads/torrents

$ ls -ld /mnt
drwxr-xr-x 3 root root 4096 Feb  4 20:10 /mnt
$ ls -ld /mnt/RAID1
drwxrwxrwx 17 http http 4096 Feb 16 14:40 /mnt/RAID1
$ ls -ld /mnt/RAID1/torrents
drwxrwxrwx 133 http http 16384 Feb 22 18:36 /mnt/RAID1/torrents

Last edited by medicineman25 (2019-02-23 13:19:28)

Offline

#6 2019-02-23 13:27:09

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: Yet another "Transmission Error: Permission Denied" thread

If you look at the output:

$ ls -ld /home/access
drwx------ 31 access access 4096 Feb 23 23:35 /home/access

Only user access has access to /home/access, not transmission. Either you run transmission as access or you change the current permissions to allow access. If access group is part of transmission list of groups, then you need to allow that group access to the folder? Eg, chmod 0750.

P.S. Don't forget:

$ ls -ld /home/access/Downloads
drwx------ 6 access access 16384 Feb 23 21:23 /home/access/Downloads

P.S.S

$ ls -ld /mnt
drwxr-xr-x 3 root root 4096 Feb  4 20:10 /mnt
$ ls -ld /mnt/RAID1
drwxrwxrwx 17 http http 4096 Feb 16 14:40 /mnt/RAID1
$ ls -ld /mnt/RAID1/torrents
drwxrwxrwx 133 http http 16384 Feb 22 18:36 /mnt/RAID1/torrents

I would highly like to dissuade you form blindly setting permissions to 0777, especially content that's deemed sensitive. You should get the gist by now and set the permissions appropriately.

P.S.S.S

Lastly, I wanted to remind you to use [ code ] tags instead of [ quote ] tags when including shell output.

Offline

#7 2019-02-23 21:59:20

medicineman25
Member
Registered: 2014-12-03
Posts: 110

Re: Yet another "Transmission Error: Permission Denied" thread

bugsmanagement wrote:

If you look at the output:

$ ls -ld /home/access
drwx------ 31 access access 4096 Feb 23 23:35 /home/access

Only user access has access to /home/access, not transmission. Either you run transmission as access or you change the current permissions to allow access. If access group is part of transmission list of groups, then you need to allow that group access to the folder? Eg, chmod 0750.

Ah yes, ok so I had this problem with sym-linking some php files to apache. Problem ended up being that the parent folders lacked permissions. I did not realise this was a Linux-by-design feature, even though I consider myself to be a fairly advanced user. That self-appraisal clearly needs adjusting for now.

P.S. Don't forget:

$ ls -ld /home/access/Downloads
drwx------ 6 access access 16384 Feb 23 21:23 /home/access/Downloads

P.S.S

$ ls -ld /mnt
drwxr-xr-x 3 root root 4096 Feb  4 20:10 /mnt
$ ls -ld /mnt/RAID1
drwxrwxrwx 17 http http 4096 Feb 16 14:40 /mnt/RAID1
$ ls -ld /mnt/RAID1/torrents
drwxrwxrwx 133 http http 16384 Feb 22 18:36 /mnt/RAID1/torrents

I would highly like to dissuade you form blindly setting permissions to 0777, especially content that's deemed sensitive. You should get the gist by now and set the permissions appropriately.

Indeed, this is not a common approach. I set these permissions in an act of desparation. I usually take a much more fine-grained approach but this was done in haste.

P.S.S.S

Lastly, I wanted to remind you to use [ code ] tags instead of [ quote ] tags when including shell output.

Of course, I shall endeavor to improve my forum etiquette.

Thank you for you guidance. Live long and prosper.

Last edited by medicineman25 (2019-02-23 22:00:10)

Offline

#8 2019-02-23 22:37:53

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: Yet another "Transmission Error: Permission Denied" thread

Don't forget to mark the thread [ solve ] by editing your first post

Offline

Board footer

Powered by FluxBB