Ubuntu newbie question - Messed up file/folder permissions

Ubuntu 20.04.4 LTS
Plex - will be the latest availble shortly

Currently I am unable to add libraries to my server and don’t even see the folder “plex” when trying to add a library.

I know my file & folder permissions are messed up. I tried executing the following command: for the folder plex (and the user is plex too, but I assume that comes later)

sudo find plex -type d -exec chmod 755 {} ;; sudo find plex -type f -exec chmod 644 {} ;

I get the error -bash: syntax error near unexpected token `;;’

I also tried
/home/sixgig/winsrv/plex$ sudo find plex -type d -exec chmod 755 {}
I get the error - find: missing argument to `-exec’

Thanks,
Jeff

A few questions?

It looks like you’re trying to put your media in your home directory (/home/sixgig) ?

Is ‘winsrv’ a network share from a windows machine?

I have a Zentryal Server (based on Ubuntu). winsrv is where I have shares for Samba. Samba is working great. I have 4 main Samba shares, winsrv (everything for backups), plex, u, and t. I can work with files thru the shares in Windows (even the folder plex); however, plex-media-server can’t see the folder plex. (I should rename the folder… too many plex’s; however, today that will cause more fun.)

THANKS for you help!

I have some recommendations:

  • Move your media out of your home directory. You’re adding complexity where it’s not needed. It’s much easier to make a directory somewhere off the / directory and then create the appropriate mount points underneath that.
  1. You retain ownership.
  2. You can set whatever permissions are required.
  3. None of it interferes with anything in your home directory.
  • As long as the names make sense to you and don’t conflict with anything else, you can use what works.

There is a collection of How-To’s do do things.

To get started, I recommend reading through :

In there, you’ll see how (with examples) to make the media available for Plex. The only thing you do is change the names (devices or directories) to match your system and then do as it instructs.

OK I followed your suggestion. I moved the mount point out of /home

To avoid old permissions (as I have experienced in WIndows), I formatted the drive, and restored 4 TB of data.

/harddrives/six-tb/winsrv/plexlibrary$

Samba shares are at winsrv and plexlibrary.

from plex I can see winsrv; however not plexlibrary (where everything is)

I will finish reading the help you already sent and see if that has the magic fix :slight_smile: I won’t get back to this till Monday.

Thanks for your help

When you get back to it,

On the Windows side, make certain to relax the read permissions for ALL the files and folders underneath the shared folder winsrv.

From the Linux side,

  1. Unmount the shared folder.
  2. sudo chmod 755 /harddrives /harddrives/six-tb /harddrives/six-tb/winsrv
  3. Mount the shared folder again.

The Linux side of this ensures PMS can everything before mounting.

Are these two shared folders or do you mean winsrv\plexlibrary ?

SUCCESS, Plex is back up and working again!!!

THANK YOU!!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.