If I have a host machine A with some files. User B can access only some files on machine A. I want to deploy a container for user B on machine A and allow user B to access only the files user B is allowed to access.
I think I can make a data container that contains only the allowed files, but as number of users and data sizes increase, it becomes tedious to create data container for each user.
I tried to map “/etc/passwd” and “/etc/group” files to the container but this exposes these files to user B inside the container.
I wonder if there is a way to map user B’s credential from the host machine A to the container (like mapping access control list or some thing)?