Multiple 'root' entries in /etc/sub{u,g}id

Hello,

LXD version: 4.13, running on latest, fully up to date Arch linux.

In order to have directory sharing between host and container working, I had to add this entry in /etc/subuid and /etc/subgid (according to this):

root:1000:1

Trouble is, there was already the following entry in these files (as per Arch instructions for unprivileged containers):

root:100000:65536

Hence now, I have two root lines in those files:

$ cat /etc/sub{u,g}id
root:100000:65536
root:1000:1
root:100000:65536
root:1000:1

All seems to be working ok. I am just wondering if something will not break later or if I am missing something.

Thanks for any advice!

L.

That’s fine, a user can have multiple allocations.

Noted. Many thanks Stéphane.
L.