Cannot Add Or Delete Files

I have PLEX running on a Pi connected to my network over Ethernet and until recently I had permissions to move files from my Windows PC to the PLEX HDD folders, delete media files from the folders via Windows File Explorer as well as delete files from within the PLEX browser UI.

Then I performed an update and I now can’t do any of those things. The Samba configuration appears to give me full permissions but I clearly don’t. Also, from within the PLEX UI the box is checked to allow the server owner to delete files.

If I attempt to delete a movie from within the PLEX UI I get the following error: “There was a problem deleting this item”

If I attempt to rename a media file over the network I get this error: “You require permission from Unix User\root to make changes to this file”

???

=(

Make sure Linux user plex has read and write access to your Samba share. Here is the perfect guide to achieve this:

Thanks, but I couldn’t find specifically how to grant plex R/W access in Samba

(1) Create a user on your NAS that has RW access to your media
(2) Use the following guide to mount the Samba share, providing the appropriate NAS credentials, to allow Linux user plex local RW access to your media: Linux Tips - #4 by ChuckPa

Just follow the tutorial and do not use the GUI tools. It will work. It’s as simple as that.

Btw: also make sure you have used the official installation guide:

Thanks! I’ll give it try =)

Still no love. This is extremely frustrating. PLEX had been running perfectly for nearly a year and then after I performed the most recent update the permissions all went to hell. The server “functions” in that I can play movies & music from our TV which has the PLEX app, but I can no longer delete media files even from within the PLEX UI nor can I add/remove/rename files via the Windows File Explorer as I had previously been able to do. I can see the files and play them but that’s it.

=’(

So, pleas take a look at the owner of the files, at the Linux user PMS is using and at the Linux user you have used for Samba.

We need the output of ls -ahl /my/media/directory and systemctl status plexmediaserver.

PMS updates do not change permissions of any file. Only the PMS user might have changed. PMS cannot change your Samba config. So some other update broke your setup. Not Plex. So let’s find the culprit.

Thanks so much for your help - I really appreciate it =)

Hopefully this screenshot will shed some light on what’s going on. I tried to do a ‘systemctl’ but Debian didn’t recognize it

Small typo in your command: it is systemctl, not systemsctl.

The directory listing is OK. drwxrwxrwx tells use owner, group and everybody else can do everything with the directories. The owner and group is root. Please also take a look at the permissions of the individual files and compare the first column or post the complete output for a single file you are unable to remove in PMS.

Unfortunately the terminal isn’t wrapping lines so I can’t see what’s off screen

That’s OK. I just needed to make sure you have the default configuration. PMS runs as Linux user plex on your device. That’s perfect. Now, please check the permissions of an individual file, e.g. with ls -ahl "/disks/PLEXMedia/HD Movies/moviename.mkv". The double quotes are important.

Here’s the first file in that folder.

BTW, If I try to change permissions of the folders globally I get a “Read-only file system” error

Please post your /etc/fstab file. Either there is an issue there or the file system of your drives has errors and requires repair.

Here’s the

fstab

Everything is correct there. Please attach the drive to your windows pc. I am quite sure Windows will try to repair the disk.

I’ll give it a shot - thanks

Windows doesn’t report any errors

I decided to try purging Samba and then reinstalling but now the Samba service refuses to start and the Samba folder is empty

='(

Please post the complete dmesg output. You can save the output to a file, like this dmesg > /tmp/dmesg.txt. This will help me understand why your disk is mounted read only. And please perform one more write test: touch "/disks/PLEXMedia/HD Movies/test.txt".

Error “cannot touch” read-only file system

Text file attached

Thanks!

dmesg.txt (19.3 KB)