Folder not writable by user abc

Sonarr version: 2.0.0.5228
OS: Linux Docker

I am new to Linux and Docker but have followed this guide to setup Sonarr within a Docker container on a Linux VM. When trying to add TV shows from a cifs mounted samba share I am getting the following error “Folder not writable by user abc”.

Sonarr docker is installed via a compose yml with the following

  sonarr:
    image: "linuxserver/sonarr"
    container_name: "sonarr"
    volumes:
      - ${USERDIR}/docker/sonarr:/config
      - ${USERDIR}/mnt/complete:/downloads
      - ${USERDIR}/mnt:/tv
      - "/etc/localtime:/etc/localtime:ro"
      - ${USERDIR}/docker/shared:/shared
    ports:
        - "8989:8989"
    restart: always
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}

My environment variables are within a file.

PUID=1000 (user is Linux)
PGID=999 (group is docker)
TZ="Europe/London"
USERDIR="/home/linux"

The samba share is mounted with the following in fstab.

//192.168.1.20/TVShows1$ /home/linux/mnt/tvshows1 cifs credentials=/home/linux/.smbcredentials,iocharset=utf8,uid=1000,gid=999 0 0

Here is a screen shot of the permissions within the /home/linux/mnt folder.
Capture

Even when setting everything within /home/linux/mnt at 777 I was unable to add the mounted share. As far as I can see my Linux server doesn’t have a user called ‘abc’. Please can someone advise where I am going wrong?

OK, so I figured it out. I’d forgot to give the user I was connecting to the samba shares with the correct permissions on the samba shares from within Windows. My stupid mistake. Sorry guys…

Can you explain what you did to fix this… I am having the same issue… i am not using windows but i am getting the same abc error.

My issue is specific to Windows. I had mounted smb shares from Windows into Linux. My Linux permissions were correct (as per the screenshot) but my Windows permissions were not - they was set to read only.

For your issue I’d double check your Linux permissions and make sure they are correct as per my screenshot (obviously yours should show your username name rather than mine - ‘linux’)

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