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