Skip to content

Unpriv LXC UID mapping for ZFS Bind Mount - SMB File server for family — by v95klima and fschauer (Proxmox staff) on Proxmox Forum

advancedforumLink only (©)

A solved thread about turning an unprivileged LXC into a family Samba server on a ZFS bind mount. The staff answer maps a range of IDs with a single lxc.idmap line, allows it in subuid/subgid and suggests a shared group for ownership; the poster then added each user with smbpasswd and restricted the share to that group.

Quick steps

  1. lxc.idmap: u 1000 1000 5 and g 1000 1000 5, plus root:1000:5 in /etc/subuid and /etc/subgid (staff answer)
  2. Create matching users and a shared group inside the container; chgrp the data
  3. Add each user with smbpasswd and use valid users = @family in smb.conf (poster's final setup)

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full thread on forum.proxmox.com

Source: Unpriv LXC UID mapping for ZFS Bind Mount - SMB File server for family by v95klima and fschauer (Proxmox staff) on Proxmox Forum. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

proxmoxlxcsambazfsidmap

More in Virtual Machines