Intermediate directories created by incus file push -p
seem to have non-world access, with mode 750. I’m querying this because I’m not sure whether it’s intended behaviour, and I couldn’t find it documented.
This is with incus 6.0.3:
$ incus file push -p --uid 0 --gid 0 --mode 644 - foo/a/b/c <<<"hello"
$ incus exec foo -- ls -ld /a /a/b /a/b/c
drwxr-x--- 3 root root 4096 Feb 22 05:31 /a
drwxr-x--- 2 root root 4096 Feb 22 05:31 /a/b
-rw-r--r-- 1 root root 6 Feb 22 05:31 /a/b/c
This is despite the fact that I created the file itself with world-readable perms, and the umask is 022 not 027:
$ incus exec foo -- bash -c umask
0022
As a result, I’ve had to give up on incus file push -p src blah/a/b/c
and instead use additional commands like incus exec blah -- mkdir -p /a/b
Have I missed something here?