Raddar Folder Permeation

Hi,

Can someone please help me to set permeation for user PLEX to read and write the mounted gmedia folder.

i’m getting that error

the folder is owned by root and i don’t want to change it to the user PLEX.

I think you’ll need to add --umask 000 to the mount and the --allow-other flag.

this is my mount setting

ExecStart=/usr/bin/rclone mount gmedia: /gmedia
–allow-other
–dir-cache-time=160h
–cache-chunk-size=10M
–cache-info-age=168h
–cache-workers=5
–cache-tmp-upload-path /data/rclone_upload
–cache-tmp-wait-time 60m
–buffer-size 0M
–syslog
–umask 002
–rc
–log-level INFO
ExecStop=/usr/bin/sudo /usr/bin/fusermount -uz /gmedia

shall i change --umask 002 \ to --umask 000 \

i have changed to --umask 000 \ still the same error

You can test by using the same user that radarr is running as and just ‘touch somefile’ in the mounted area.

I usually do open things up for ‘everyone’ but just make a group and you can add plex/radarr user/root to that group.

It could even be the plex group. Just pick one of them or make a new one.

I have a group called felix:

felix:x:1004:felix,plex,www-data,emby

it has both the plex and emby user in there.

My mount just has user/group read/write but other is not set.

felix@gemini:/$ ls -al | grep gmedia
drwxrwxr-x 1 felix felix 0 Jun 23 10:30 gmedia

As ncw stated, the --umask 002 gives the permissions there. If you changed it to umask 000, that should work too.

Can you do a ls -al command and see what the mounted permissions are on the /gmedia folder?

drwxrwxrwx 1 root root 0 Jun 11 10:53 Movie
drwxrwxrwx 1 root root 0 Jun 11 10:53 TV

radarr user is PLEX

Go one folder up on your actual mount.

felix@gemini:/$ ls -al | grep gmedia
drwxrwxr-x 1 felix felix 0 Jun 23 10:30 gmedia

and do a check on Radarr:

felix@gemini:~$ ps -ef | grep Radarr
felix 6882 1 0 Jun24 ? 00:04:46 /usr/bin/mono /opt/Radarr/Radarr.exe --nobrowser

for the first command line i’m getting nothing to display

root@Ubuntu-1604-xenial-64-minimal ~ # ls -al | grep gmedia
root@Ubuntu-1604-xenial-64-minimal ~ #

for the second command i’m getting this

root@Ubuntu-1604-xenial-64-minimal ~ # ps -ef | grep Radarr
plex 1069 1 0 13:25 ? 00:00:10 /usr/bin/mono /opt/radarr/Radarr.exe -nobrowser
root 3610 3578 0 14:16 pts/0 00:00:00 grep --color=auto Radarr
root@Ubuntu-1604-xenial-64-minimal ~ #

You have to replace “gmedia” and run it for whatever folder you have mounted in the parent directory of where the mount is.

My mount is on “gmedia” and it’s mounted at the root or “/” of my Unix box.

felix@gemini:/$ ls
bin   data  etc     home	initrd.img.old	lib64	    media  opt	       proc  run   srv	     sys   Test  usr  vmlinuz
boot  dev   gmedia  initrd.img	lib		lost+found  mnt    output.log  root  sbin  swap.img  test  tmp	 var  vmlinuz.old
felix@gemini:/$

Mounts:

felix@gemini:/$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.2G  1.1M  3.2G   1% /run
/dev/sda2       228G   67G  150G  31% /
tmpfs            16G   40K   16G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sda1       511M  4.6M  507M   1% /boot/efi
data            5.3T  2.6T  2.7T  49% /data
gcrypt:         1.0P   44T  1.0P   5% /gmedia
tmpfs           3.2G     0  3.2G   0% /run/user/1000

root@Ubuntu-1604-xenial-64-minimal ~ # df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 14M 3.2G 1% /run
/dev/md2 3.6T 15G 3.4T 1% /
tmpfs 16G 25M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 488M 126M 337M 28% /boot
tmpfs 3.2G 4.0K 3.2G 1% /run/user/0
gmedia: 1.0P 15T 1.0P 2% /gmedia
root@Ubuntu-1604-xenial-64-minimal ~ #

Type:

cd /
ls -al | grep /gmedia

getting nothing

root@Ubuntu-1604-xenial-64-minimal ~ # cd /
root@Ubuntu-1604-xenial-64-minimal / # ls -al | grep /gmedia
root@Ubuntu-1604-xenial-64-minimal / #

no im getting this

radarr folder is not writable by user root, i dont have any issue with sonarr it’s working great and i can use the gmedia folder without any problem.

Sorry type:

cd /
ls -al | grep gmedia

root@Ubuntu-1604-xenial-64-minimal / # cd /
root@Ubuntu-1604-xenial-64-minimal / # ls -al | grep gmedia
drwxrwxrwx 1 root root 0 Jun 25 21:29 gmedia
root@Ubuntu-1604-xenial-64-minimal / #

What is the output for?

ls /gmedia

root@Ubuntu-1604-xenial-64-minimal / # ls /gmedia
Movie TV
root@Ubuntu-1604-xenial-64-minimal / #

What if you do as root:

su - plex
touch /gmedia/Movie/testfile

Does the file get created?

yes

Is plex running as the plex user? Check with ps aux | grep plex

I think you are running your mount as root - I normally run them as a user - what do you do @Animosity022 ?

I personally would not run my mount as root as I always run it as a non privileged user.

If he/she can touch the file as the proper user which Radarr is running as, Radarr should write its test file:

-rw-rw-r-- 1 felix felix 130 Mar 28 07:04 radarr_write_test.txt

That’s the only thing Sonarr/Radarr tries to do.