Skip to content

Rootful quadlet User and UIDMap overlay mount permission denied #24384

Answered by polarathene
Rivers47 asked this question in Q&A
Discussion options

You must be logged in to vote

A container root is generally not equivalent to root on the host as capabilities are far less. You can use a non-root user if that works for you but it seems rather redundant to map a container ID of 1000 to a host ID of 1000 when that wouldn't change anything?

I showed with commands to reproduce how the ownership is mapped both from the container and outside it. If you don't want to map between different container vs host ID you don't need the mapping?

Otherwise just UIDMap=0:1000 or User=1000, but not both should work for you?


What I wanted to achieve is to use the same normal user in and outside of the container as is but prevent root inside the container to act as root outside.

  • If…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@polarathene
Comment options

Answer selected by Rivers47
@Rivers47
Comment options

@polarathene
Comment options

Comment options

You must be logged in to vote
1 reply
@polarathene
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants