Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Transmission Permission denied

Wed Jul 26, 2017 2:05 am

I am getting permission denied error when I try to download files in transmission.

I have set download directory to an external FAT32 USB HDD.

I automount the HDD using the following line in /etc/fstab file

###

UUID=EF4E-0CFC /mnt/library vfat nofail,uid=pi,gid=pi 0 0


###

User avatar
lmarmisa
Posts: 1227
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: Transmission Permission denied

Wed Jul 26, 2017 2:50 am

The problem could be not related to transmission.

Are you sure the external device is correctly mounted?:

Code: Select all

mount | grep /mnt/library
ls -l /mnt/library
echo "hello" > /mnt/library/hello.txt
ls -l /mnt/library
rm /mnt/library/hello.txt
NOTE: the most frequently directory used for mounting external devices is /media. The directory /mnt can be used too but it is not so usual. Are you sure that /mnt is correct?.

Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Re: Transmission Permission denied

Wed Jul 26, 2017 11:47 am

I think the problem is the external USB hdd has not been mounted properly.

Can anyone tell me how to mount it properly?

Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Re: Transmission Permission denied

Wed Jul 26, 2017 11:52 am

Hello.txt file was created on the USB hdd

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Transmission Permission denied

Wed Jul 26, 2017 8:12 pm

Debian packaged Transmission would run as "debian-transmission" other than "pi": https://wiki.debian.org/BitTorrent/Transmission

So if you installed Transmission via "apt-get", you might try mount "UUID=EF4E-0CFC /mnt/library vfat nofail,uid=debian-transmission,gid=debian-transmission 0 0"

Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Re: Transmission Permission denied

Wed Jul 26, 2017 9:40 pm

allfox wrote:
Wed Jul 26, 2017 8:12 pm
Debian packaged Transmission would run as "debian-transmission" other than "pi": https://wiki.debian.org/BitTorrent/Transmission

So if you installed Transmission via "apt-get", you might try mount "UUID=EF4E-0CFC /mnt/library vfat nofail,uid=debian-transmission,gid=debian-transmission 0 0"
Still getting the error..

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Transmission Permission denied

Thu Jul 27, 2017 11:14 am

You need to tell us more.

What you did any way? We can't do telepath to know your situation, and we are lazy so we wont read your cooking recipe.

How did you installed Transmission?

What you see when doing "ls -l /mnt/library".

Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Re: Transmission Permission denied

Thu Jul 27, 2017 4:34 pm

allfox wrote:
Thu Jul 27, 2017 11:14 am
You need to tell us more.

What you did any way? We can't do telepath to know your situation, and we are lazy so we wont read your cooking recipe.

How did you installed Transmission?

What you see when doing "ls -l /mnt/library".
I installed Transmission using sudo apt-get install transmission-daemon

I reinstalled retropie and also reformatted my USB drive to NTFS.

I gave this command in /etc/fstab to automount the NTFS USB drive. It's not working since the drive doesn't mount.

----
01D306E43E77DFF0 /media/library ntfs-3g nofail,uid=1000,gid=1000,noatime 0 0
----

User avatar
lmarmisa
Posts: 1227
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: Transmission Permission denied

Thu Jul 27, 2017 4:52 pm

Pi124 wrote:
Wed Jul 26, 2017 11:52 am
Hello.txt file was created on the USB hdd
If the test I proposed you was successful, the USB drive is being mounted.

These commands should help (post the outputs here if you wish):

Code: Select all

sudo blkid
mount | grep /mnt/library
ls -l /mnt/library
The command blkid will show the different unique ids of drives. Check the uuid of you USB drive is correct.

The second command will show if the USB is mounted.

If the drive is mounted, the third command will show info related to ownership and permissions (user, group, others) of the mounted root directory.

Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Re: Transmission Permission denied

Thu Jul 27, 2017 5:02 pm

lmarmisa wrote:
Thu Jul 27, 2017 4:52 pm
Pi124 wrote:
Wed Jul 26, 2017 11:52 am
Hello.txt file was created on the USB hdd
If the test I proposed you was successful, the USB drive is being mounted.

These commands should help (post the outputs here if you wish):

Code: Select all

sudo blkid
mount | grep /mnt/library
ls -l /mnt/library
The command blkid will show the different unique ids of drives. Check the uuid of you USB drive is correct.

The second command will show if the USB is mounted.

If the drive is mounted, the third command will show info related to ownership and permissions (user, group, others) of the mounted root directory.
The ntfs USB drive is mounting now. I forgot to include uuid= in fstab file.

Output of ls - l /media/library is


pi@retropie:~ $ ls -l /media/library
total 8
drwxrwxrwx 1 pi pi 4096 Jul 27 2017 Media
drwxrwxrwx 1 pi pi 0 Jul 27 2017 $RECYCLE.BIN
drwxrwxrwx 1 pi pi 4096 Jul 27 2017 roms
drwxrwxrwx 1 pi pi 0 Jul 27 2017 shares
pi@retropie:~ $

User avatar
lmarmisa
Posts: 1227
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: Transmission Permission denied

Thu Jul 27, 2017 5:09 pm

Everything looks good. Transmission should be able to write files there. Check the configuration of transmission if the problem continues.

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Transmission Permission denied

Thu Jul 27, 2017 8:32 pm

I think it also worth checking "ls -l /media" to tell if the "library" directory could be written by the "debian-transmission" user.

Pi124
Posts: 14
Joined: Mon Jul 17, 2017 8:32 am

Re: Transmission Permission denied

Fri Jul 28, 2017 1:56 am

lmarmisa wrote:
Thu Jul 27, 2017 5:09 pm
Everything looks good. Transmission should be able to write files there. Check the configuration of transmission if the problem continues.
It's working now.

What finally did it was switching to ntfs from FAT32.

ageekhere
Posts: 4
Joined: Sat May 23, 2015 10:30 am

Re: Transmission Permission denied

Fri Jul 28, 2017 1:10 pm

I had this problem, took a while to fix, try the following

Code: Select all

UUID=EF4E-0CFC     /mnt/library   auto    rw,user,auto,fmask=0000,dmask=0000    0    0

User avatar
lmarmisa
Posts: 1227
Joined: Thu Feb 14, 2013 2:22 am
Location: Jávea, Spain

Re: Transmission Permission denied

Fri Jul 28, 2017 4:49 pm

FAT32 or FAT16 file-systems are not suitable for storing big files due to maximum size limits.

I believe that this was your problem:

https://www.genie9.com/Support/KB/Knowl ... x?KBID=113

ageekhere
Posts: 4
Joined: Sat May 23, 2015 10:30 am

Re: Transmission Permission denied

Sat Jul 29, 2017 12:59 am

I used exFAT

Code: Select all

sudo apt-get install fuse-exfat exfat-utils

Return to “General discussion”