How To Enable Read / Write Permissions for Log File Created from Rclone command in Unraid's Terminal

What is the problem you are having with rclone?

I am running Unraid and everytime a log file is created from the command I'm trying to log, it defaults with no linux permissions which doesn't allow me to read/write the .txt file generated. Any idea how to make it so that the default permissions given is RW so i can access the log file via Krusader or windows mounted samba share?

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

rclone v1.58.0- os/version: slackware 14.2+ (64 bit)- os/kernel: 5.10.28-Unraid (x86_64)

  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.8
  • go/linking: static
  • go/tags: none
rclone sync --transfers 8 --checkers 16 --progress --delete-during --no-update-modtime --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --drive-chunk-size=64M --drive-upload-cutoff=64M --stats 1s --stats-file-name-length 0 --fast-list --drive-acknowledge-abuse --log-level DEBUG --log-file=/mnt/user/Personal/Logs/rclone_$(date +%Y%m%d_%H%M%S).txt "/mnt/user/MOV" "GD:GD/MOV"

It's not related to rclone but the user you are running as.

How do I give myself permission to move my own files? : unRAID (

How does it run? In a docker? In it's own thing? On a share? What user does it run as? What permissions do you see on the log file?

Generally on Linux, it's related back to the umask on the user.

Hmm - it's running on terminal via "root@Unraid:~# " where Unraid is the name of my server. Rclone is installed not as a docker, but just a plugin that terminal can access

That is strange.

What does a ls -al on the log file show?

see below. Basically trying to open the 20220527 files that were recently made

root@Unraid:~# cd /mnt/user/Personal/Logs
root@Unraid:/mnt/user/Personal/Logs# ls -al
total 76
drwxrwxrwx 1 nobody users   344 May 27 13:03 ./
drwxrwxrwx 1 nobody users     8 May  2 15:17 ../
-rw-rw-rw- 1 nobody users   884 Jan 28 21:56 rclone_2022-01-28_16:38:02.866.txt
-rw-rw-rw- 1 nobody users   625 Jan 30 12:23 rclone_2022-01-30_12:14:01.107.txt
-rw-rw-rw- 1 nobody users 54547 Jan 30 14:36 rclone_20220130_140118.txt
-rw-r----- 1 root   root   2773 May 27 13:02 rclone_20220527_130251.txt
-rw-r----- 1 root   root   2773 May 27 13:03 rclone_20220527_130301.txt
-rw-r----- 1 root   root   2245 May 27 13:03 rclone_20220527_130325.txt

Those files look to have read permissions. What do you mean you can't read them?

When I try open the file via krusader or just via the samba mounted share in windows, it doesn't let me open the file

That would be more related to the permissions and your share. Maybe the Unraid folks would have more ideas?

So i think I found a workaround solution: adding a few arguments before my rclone command and it seems to set the right permissions. I guess the best workaround would be to just find a way to set at a folder level any file created within that folder to always inherit a default permission of my choosing. Not sure if that is possible vs. adding commands before i run rclone

RCLONE_LOG=/mnt/user/Personal/Logs/rclone_$(date +%Y%m%d_%H%M%S).txt && touch $RCLONE_LOG && chown nobody.users $RCLONE_LOG &&  rclone sync --delete-during --size-only --verbose --progress --no-update-modtime --transfers 8 --checkers 16 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --drive-chunk-size=64M --drive-upload-cutoff=64M --stats 1s --stats-file-name-length 0 --fast-list --drive-acknowledge-abuse --log-file $RCLONE_LOG  "/mnt/user/MOV" "GD:GD/MOV"

Hey @Animosity022 - quick question. How do i setup so that my log keeps track of total files transferred / total GB's transferred and time taken (like below)? I'm trying to run this rclone script in background as a script but i would like to refer back to log file created to see the summary data that is usually shown if i were to run the script in terminal

Transferred: 26.937 GiB / 2.430 TiB, 1%, 72.167 MiB/s, ETA 9h42m8s
Checks: 19082 / 19082, 100%
Transferred: 118 / 4002, 3%
Elapsed time: 5m35.7s

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