KanarekLife / proxmox-idmap-helper

https://proxmox-idmap-helper.nieradko.com
MIT License
5 stars 3 forks source link

The host id and container id are the wrong way round. #17

Open Error1000 opened 1 year ago

Error1000 commented 1 year ago

For example when mapping a single group, for example guest's 1000 to the host's 1001. It produces this for the .conf:

# Generated with Proxmox LXC idmap helper created by Stanisław Nieradko
lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 1001
lxc.idmap: g 1001 1000 1
lxc.idmap: g 1002 101002 64534

The correct .conf is actually:

lxc.idmap: u 0 100000 65536
lxc.idmap: g 0 100000 1000
lxc.idmap: g 1000 1001 1
lxc.idmap: g 1001 101002 64535

The subgid and subuid are correct however. I have tested this.

jo-me commented 1 year ago

I created a PR for this. Feel free to use https://jo-me.github.io/proxmox-idmap-helper in the meantime.

Error1000 commented 1 year ago

Thanks, let me know if you need any assistance, i can't promise anything but I'll do my best.