Is it possible to set a custom uid and gid for the mount point? #244
Replies: 7 comments 9 replies
-
That being said, it should be trivial to provide these options if there's a use case. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info, for the use case, recently bubblewrap merged |
Beta Was this translation helpful? Give feedback.
-
I've modified the filesystem to always use the current |
Beta Was this translation helpful? Give feedback.
-
I also think it would be great to have this functionality. This would speed up the operation of portable unprivileged containers based on bubblewrap and DWARFS rootfs image by using bubblewrap overlay, rather than fuse-overlay or union-fuse. |
Beta Was this translation helpful? Give feedback.
-
I'm totally fine with adding support for this. One question, though: @ruanformigoni, When you're saying
do you mean just the mountpoint itself or rather everything below the mountpoint? I expect you mean everything, as that's what your change is doing, and that's also what libfuse would do according to the manpage:
So I guess I'd add |
Beta Was this translation helpful? Give feedback.
-
Implemented in fb74c44. Feel free to check if this works for you with the binaries from the CI pipeline. |
Beta Was this translation helpful? Give feedback.
-
@mhx
These errors don't occur if i add read permissions for others ( --chmod=o+r) when creating DwarFS image, but I wouldn't want to do that.
Also, when trying to create a DwarFS image from a mounted SquashFS image with similar mount options and the same initial file permissions, no errors occur. And indeed, the files are readable under the user I want to create the DwarFS image. |
Beta Was this translation helpful? Give feedback.
-
Greetings,
I've used something similar with squashfuse,
squashfuse -o uid=1001,gid=1001 fs.sqfs mount
, is it possible to do something similar here?Thanks
Beta Was this translation helpful? Give feedback.
All reactions