LXC Container bind mount: map all uid/gid to a single uid/gid on the host — by McChaos on Proxmox Forum
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
- Add lxc.idmap: g 1000 1000 1 (with surrounding ranges) to the container config
- Add root:1000:1 to /etc/subgid on the host
- 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.
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