Issue description:
rclone mount
ignores the RCLONE_UMASK
environment variable.
How to reproduce:
On the Linux OS:
-
configure a remote with the name 'myremote'.
-
create a directory 'myremote' in cwd.
-
enter into the terminal:
RCLONE_UMASK=077 rclone mount myremote: myremote
. -
enter in another terminal window:
ls -l myremote
. -
see that files from the remote are mounted with the OS default umask (755 or 644).
-
stop rclone mount (press ^C, send it a SIGTERM).
-
enter into the terminal:
rclone --umask=077 mount myremote: myremote
. -
enter in another terminal window:
ls -l myremote
. -
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.