Hi all, sorry for the noob question.
I have a LXC container that I want root user and root group on CT to be mapped to uid 1015 and gid 1015 on host.
I read https://pve.proxmox.com/wiki/Unprivileged_LXC_containers and I understood that:
The first number is the id in your container.
The second number is the id being mapped from container to uid on the host.
The third number is how many consecutive ids you want to map.
According to this i set the above configuration to my LXC /etc/pve/lxc/104.conf:
lxc.idmap = u 0 1015 1
lxc.idmap = g 0 1015 1
lxc.idmap = u 1 100001 65535
lxc.idmap = g 1 100001 65535
/etc/subuid:
root:1015:1
/etc/subgid:
root:1015:1
When I do this the container starts ok but I'm unable to login as root.
What am I missing here?
kind regards
I have a LXC container that I want root user and root group on CT to be mapped to uid 1015 and gid 1015 on host.
I read https://pve.proxmox.com/wiki/Unprivileged_LXC_containers and I understood that:
The first number is the id in your container.
The second number is the id being mapped from container to uid on the host.
The third number is how many consecutive ids you want to map.
According to this i set the above configuration to my LXC /etc/pve/lxc/104.conf:
lxc.idmap = u 0 1015 1
lxc.idmap = g 0 1015 1
lxc.idmap = u 1 100001 65535
lxc.idmap = g 1 100001 65535
/etc/subuid:
root:1015:1
/etc/subgid:
root:1015:1
When I do this the container starts ok but I'm unable to login as root.
What am I missing here?
kind regards