New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount with specific owner #150
Labels
question
Further information is requested
Comments
The hack described in the README https://github.com/systemd/zram-generator#mount-points applies, just do Closing as duplicate of #146. I should really polish the half of a systemd patch I have for this. |
karelzak
pushed a commit
to util-linux/util-linux
that referenced
this issue
Apr 21, 2022
Which take a user, group, and mode, respectively, and set them on the target after mounting This is vaguely similar to tmpfs(5)'s [ug]id= and mode= options, but we POSIX-parse the user- and group names Oft requested in systemd/zram-generator, since a common use-case is to use it to create /tmp or an equivalent directory that needs to be a=rwx,o+t (or a user's private temp that needs to be owned by them) ‒ this is impossible without terrible hacks, cf. systemd/zram-generator#150, systemd/zram-generator#146, &c. This started off as a Set{User,Group,Mode}= systemd mount unit, but was poetterung into libmount options: systemd/systemd#22889 Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Karel Zak <kzak@redhat.com>
nabijaczleweli
added a commit
to nabijaczleweli/systemd-zram-generator
that referenced
this issue
May 17, 2022
keszybz
pushed a commit
that referenced
this issue
May 17, 2022
(Will be) available since 2.39, merged in https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=24e896c1400c2328b8bdffde674a3d74429acdf1^^ https://lore.kernel.org/util-linux/20220421101949.4zc7kojyujdiv2lb@ws.net.home/ Ref: #150, #146
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can I mount /var/cache/my_folder with specific
uid
andgid
?The text was updated successfully, but these errors were encountered: