Rclone file permission on a SAMBA Server

What is the problem you are having with rclone?

I need to run the rclone copy command as user "lalserver", copying files from my pCloud repository to 2 different local folders (let's say: user1 and user2).
I have all my files stored remotely in the cloud and need now to save them back in my home server. After this, I'm planning to keep remote folder updated with sync in the opposite direction.
These two local folders are shared by Samba on the local LAN .

rclone saves files owned by lalserver, so they can be read from my windows computers, but not modified/deleted (logging into the samba as user1 or user2).
By executing a chown command to user1 or user2 it works, but it doesn't seem the proper way to act. I've found that running umask 000 before the rclone copy, file owner remains lalserver but files can be modified and deleted with no issues.
In order to make samba folder writable to rclone as well, I set permissions 777.

What's the correct way to act for this setup and solve this issue?

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

rclone v1.69.1

  • os/version: ubuntu 24.04 (64 bit)
  • os/kernel: 6.8.0-56-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: none

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

pCloud

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

rclone copy pcloud:folder /media/server_m/user1/folder -P

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[pcloud]
type = pcloud
token = XXX
hostname = eapi.pcloud.com