Write Permission

What is the problem you are having with rclone?

Unable to write when I am accessing through Samba. I can write all other shares when I access from Samba its only Rclone mount I am having this issue. I tried to set UMASK=000 but same output.

Any ideas please?

Run the command 'rclone version' and share the full output of the command.

kratos@kratos:~$ docker exec rclone rclone version
rclone v1.59.0-beta.6116.1d6d41fb9

  • os/version: alpine 3.15.4 (64 bit)
  • os/kernel: 4.15.0-177-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

    image: cr.hotio.dev/hotio/rclone:testing
    hostname: ${DOCKERHOSTNAME}
    container_name: rclone
      - RCLONE_CONFIG=/config/rclone.conf
      - RCLONE_GID=1000
      - RCLONE_TIMEOUT=10m
      - RCLONE_UID=1000
      - RCLONE_UMASK=002
      - RCLONE_CACHE_DIR=/storage/cache
      - apparmor:unconfined
      - SYS_ADMIN
      - /dev/fuse
    restart: unless-stopped
      - /mnt/gdrive:/mnt/gdrive:shared   
      - ${DOCKERCONFDIR}/rclone:/config
      - ${DOCKERSTORAGEDIR}:/storage
    command: mount "gdrive:"  "/mnt/gdrive" --allow-other --allow-non-empty

The rclone config contents with secrets removed.

type = drive
client_id = 7m6rc1.apps.googleusercontent.com
client_secret = 4ThzW9UFCz
scope = drive
token = {"access_token":"ya29.a0ARrdaM_rXo1Gh1zeUpKXF5ktDl3DFrxlvv43UjjxOduRP1Jx4iYaWECK-tKzZy3rFJBp82Hl-KkifKYE","token_type":"Bearer","refresh_token":"1//03cw2-Lo49eO2q778c","expiry":"2022-05-16T13:07:23.87786834Z"}
root_folder_id = 0ALitjOY9PVA



what is the result of running rclone mount on the command line, not using docker?

Sorry I should mention earlier thats exactly I did before I came here :slight_smile:

Same permission error.

All other mounts/shares are writeable its just rclone mount not writeable.

i am not at all a linux expert but samba over rclone mount, i have done that a few times.
--- with a synology nas.
--- on a raspbery pi.

if you search around, there is a topic where i explain what i did. and believe me, all i did was use webmin.

what i would do next, on the command line. for all testing, would not use docker.
--- run the simplest command possible
mount gdrive: /mnt/gdrive --allow-other --config=/config/rclone.conf --log-level=DEBUG
--- trigger the error, note the current time
--- look into the rclone debug log.

Apologies for late response on this let me turn on the DEBUG and post the logs.


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