Skip to content

LXC Container bind mount: map all uid/gid to a single uid/gid on the host — by McChaos on Proxmox Forum

advancedforumLink only (©)

A solved thread on giving an unprivileged LXC write access to a host folder. The author maps GID 1000 straight through with lxc.idmap, allows it in /etc/subgid, creates a matching datauser group in the container and finally adds root to that group, which was the missing piece.

Quick steps

  1. Add lxc.idmap: g 1000 1000 1 (with surrounding ranges) to the container config
  2. Add root:1000:1 to /etc/subgid on the host
  3. Create a datauser group (GID 1000) in the container and add the users and root to it

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: LXC Container bind mount: map all uid/gid to a single uid/gid on the host by McChaos on Proxmox Forum. Licence: Link only (©).

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

proxmoxlxcbind mountpermissions

More in Virtual Machines