I am running PMS on Ubuntu 16, and all my media is on a Lenovo ix4-300d
All my downloaded media is grand, however whenever i try to stream or record I get a write access to folder error in the recording guide.
Ive had a look through setting permissions for folders etc, I have set up a new library for recorded tv, and mounted using fstab however no recordings happen.
I should add I am relatively new to linux so any help is appreciated
the mount in question in fstab //192.168.0.240/NetworkStorage/Recorded /media/recorded cifs username=media,password=media,uid=bob,iocharset=utf8,sec=ntlm 0 0
when logged onto the linux os I can save files to any of the shares. The username here is just my name. I have ready a few posts about giving the plex user write access to the shares, but not sure i understand where.
Plex currently can save metadata to the nas, so i assume the plex user can write to the shares, there is no plex user on the nas
You have uid=bob specified for the cifs mount so those anything under that mount is owned by bob.
who is the owner of /media/recorded? (ls -lsa /media/recorded)
what are the permissions set to on /media/recorded? (ls -lsa /media/recorded)
my plex runs as a different user and saves things as “nobody” so I am thinking maybe you need to adjust permissions or ownership?
bob is the username for the ubuntu account. media is the username that ubuntu uses to connect to the shares on the lenovo nas
bob@ubuntu:~$ ls -lsa /media/recorded
total 4
0 drwxr-xr-x 2 bob root 0 Aug 18 09:05 .
4 drwxr-xr-x 9 root root 4096 Aug 17 22:41 …
0 drwxr-xr-x 2 bob root 0 Aug 18 09:05 bob
I believe its a permissions / ownership issue as well but Im not sure enough of what to change to resolve.
Yeah I think the bob thing is messing it up a bit since plex doesn’t run as bob and therefore doesn’t have permissions.
First you can try and chmod -R 777 /media/recorded
That will give full permissions to anybody to write to that, kinda dangerous but Ive done this…
Second you can try and figure out what username plex runs as and modify your fstab where you replace bob with the user plex runs as so he has full permissions to start with. ps -aef | grep plex and look for the running process and you should see the username its running as.
Third you can try and chown -R nobody:users /media/recorded and see if that changes the ownership permissions of that fstab mount so that anybody can write to it as well.
Sorry I am not 100% sure which option might be best for your setup but those are things you can try.
**** If you do know what user plex runs as you can run su - username and you will become that user and you can test writing to /media/recorded with that user instead of bob to confirm this is in fact a permissions issue with writing which it sounds like before making any changes.
When i run su plex, i get prompted for a password, and i dont know what the password for that username is. so I cant change to that user and test if i can write there.
chown -R nobody:users /media/recorded also no change.
Final step it to change the fstab so that share is remounted with the plex user and test again. Surely then I will need to create a plex user on the nas?
so you might need to run “sudo su - plex” this will prompt you for password and use your bob password in order to become plex, sorry different linux distros act in different ways…
Final step no you should not need to add a user named plex on the NAS at all that is just who would own the mount on the linux side you use the media/password account for the NAS so changing uid from bob to plex will not require a user be added to the NAS.