All of lore.kernel.org
 help / color / mirror / Atom feed
* Setting owner and permissions of subvolumes in newly-created BTRFS filesystem
@ 2025-10-15  5:43 Demi Marie Obenour
  2025-10-15  5:47 ` Qu Wenruo
  0 siblings, 1 reply; 9+ messages in thread
From: Demi Marie Obenour @ 2025-10-15  5:43 UTC (permalink / raw)
  To: linux-btrfs


[-- Attachment #1.1.1: Type: text/plain, Size: 581 bytes --]

I need to create a BTRFS filesystem where /home and /tmp are BTRFS
subvolumes owned by root.  It's easy to create the subvolumes with
--subvol and --rootdir, but they wind up being owned by the user that
ran mkfs.btrfs, not by root.  I tried using fakeroot and it doesn't
work, regardless of whether fakeroot and btrfs-progs come from Arch
or Nixpkgs.

What is the best way to do this without needing root privileges?
Nix builders don't have root access, and I don't know if they have
access to user namespaces either.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-28 23:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-15  5:43 Setting owner and permissions of subvolumes in newly-created BTRFS filesystem Demi Marie Obenour
2025-10-15  5:47 ` Qu Wenruo
2025-10-15  6:01   ` Demi Marie Obenour
2025-10-15  6:49     ` Qu Wenruo
2025-10-16 22:42       ` mkfs.btrfs reproducibility Demi Marie Obenour
2025-10-16 22:50         ` Qu Wenruo
2025-11-28 18:06           ` Calvin Owens
2025-11-28 20:32             ` Qu Wenruo
2025-11-28 23:14               ` Calvin Owens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.