Hi,
So I’m trying to get Samba working properly with rootless podman and quadlets with the tumbleweed container running rootless and I’m not if my solution is very good, because from what I can see I have 3 options (2, really)
- Run with UserNS=keep-id: This solution fails to launch the container, I’m assuming because the account that runs the container inside is root and doesn’t work well with my host id.
- Run with an internal user with uid/gid 1000 and use podman-unshare to chown the share directory: This works, but then assigns a 5 digit user id to all my files, so they’re a pain to browse locally
- Create a samba user with uid/gid 0 and name of root: This means that the files are owned by the user running the container, as the userid is mapped onto the internal root user: This is the solution I chose, but I’m very new to podman/containers in general so I’m not sure if it’s the right one.
Advice appreciated, thank you!