RCLONE_UMASK variable ignored by rclone mount

Issue description:

rclone mount ignores the RCLONE_UMASK environment variable.

How to reproduce:

On the Linux OS:

  1. configure a remote with the name 'myremote'.

  2. create a directory 'myremote' in cwd.

  3. enter into the terminal: RCLONE_UMASK=077 rclone mount myremote: myremote.

  4. enter in another terminal window: ls -l myremote.

  5. see that files from the remote are mounted with the OS default umask (755 or 644).

  6. stop rclone mount (press ^C, send it a SIGTERM).

  7. enter into the terminal: rclone --umask=077 mount myremote: myremote.

  8. enter in another terminal window: ls -l myremote.

  9. see that files are mounted without masked permissions (700 or 600).

What is your rclone version (output from rclone version)

rclone v1.55.0-DEV
- os/type: linux
- os/arch: amd64
- go/version: go1.16
- go/linking: dynamic
- go/tags: none

Package: rclone.x86_64 1.55.0-1.fc34

Package: fuse.x86_64 2.9.9-11.fc34

OS: Fedora 34 (KDE spin)

Tested with NextCloud WebDAV and Google Drive remotes.

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

RCLONE_UMASK=077 rclone -vv mount hetznernxc: hetznernxc

The rclone config contents with secrets removed:

[hetznernxc]
type = webdav
url = https://nx<redacted>.your-storageshare.de/remote.php/webdav/
vendor = nextcloud
user = <redacted>
pass = <redacted>

A log of two commands with -vv

First with the --umask set, second with the RCLONE_UMASK set to indicate the difference.

I can replicate this :slight_smile:

Can you open a new issue on Github about this and we'll fix soon!

Thanks

1 Like

Done.

Thank you.

1 Like

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