apptainer / apptainer-admindocs

Other
2 stars 15 forks source link

User Namespaces & Fakeroot - Starting range of UID is higher than end? #135

Closed mkandes closed 1 year ago

mkandes commented 1 year ago

Which Document page:

On what page is the problem?

https://apptainer.org/docs/admin/latest/user_namespace.html#basics

Expected results:

What are you expecting to see?

For user foo an entry in /etc/subuid might be:

foo:10000:65536

where foo is the username, 10000 is the start of the UID range that can be used by foo in a user namespace uid mapping, and 65536 number of UIDs available for mapping.

Same for /etc/subgid:

foo:10000:65536

Actual results:

What is the problem, what's misspelled, or what's missing?

Isn't 100000 a typo? I assume its suppose to be 10000.

For user foo an entry in /etc/subuid might be:

foo:100000:65536

where foo is the username, 100000 is the start of the UID range that can be used by foo in a user namespace uid mapping, and 65536 number of UIDs available for mapping.

Same for /etc/subgid:

foo:100000:65536
mkandes commented 1 year ago

Ah. I see. Maybe not. The second number is the width of the range from the starting UID, not the ending UID.