Dir created inside a loop fs denies access, but has correct permissions.init.sh - creates an fs image and mounts it (user and group ids are 1000):#!/bin/bashmkdir -p out-dirdd if=/dev/zero of=out-dir.img bs=1024 count=125/sbin/mkfs.ext4 out-dir.imgguestmount -o uid=$(id -u) -o gid=$(id -g) -a out-dir.img -m/dev/sda out-dircreate.sh - creates a dir and does cd:#!/bin/bashmkdir -m 700 out-dir/testcd out-dir/testThe cd gives:./create.sh: line 4: cd: out-dir/test: Permission deniedThen, ls -lan out-dir:drwxr-xr-x 4 1000 1000  1024 Mar 21 15:27 .drwxrwxr-x 3 1000 1000  4096 Mar 21 15:27 ..drwx------ 2 1000 1000 12288 Mar 21 15:27 lost+founddrwx------ 2 1000 1000  1024 Mar 21 15:27 testHow to establish the correct mapping?
guestunmount: can't cd into a dir, but the permissions are ok
linux;permissions;mount;loop device;fuse
This is the option: -o default_permissions.guestmount --fuse-help:...-o default_permissions enable permission checking by kernel