Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Podman rootless: help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 334
Location: Italy, Torino

PostPosted: Mon Jun 03, 2024 1:59 pm    Post subject: Podman rootless: help Reply with quote

Anybody expert with Podman here? (gentoo without SystemD)

i am running podman rootless, and while many containers runs fine, a few have a strange issue where files created in volumes belongs to veyr high UIDs. Everything works fine, but files on hard drive will belog to wrong UID.

For example, if my container runs as user "user1(uid:1001)" the files created belongs to uid 2591278. The container works just fine... It seems a UID mismatch, but using PUID/PGID doesn't seems to have any effect.

any hints?
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 331

PostPosted: Mon Jun 03, 2024 9:49 pm    Post subject: Reply with quote

what makes you think the number 2591278 is wrong? what you expect instead?
uid table is no more uint16. It is uint32 nowadays

Quote:
--uidmap=[flags]container_uid:from_uid[:amount]

Run the container in a new user namespace using the supplied UID mapping
https://docs.podman.io/en/latest/markdown/podman-run.1.html
Back to top
View user's profile Send private message
shimitar
Guru
Guru


Joined: 23 Nov 2003
Posts: 334
Location: Italy, Torino

PostPosted: Tue Jun 04, 2024 4:31 am    Post subject: Reply with quote

Well the user uid is 1001 so I was expecting files crested by the container to had uid 1001 not that big number.

Things works, but how to get uid 1001 was the question
_________________
Willy Gardiol
willy@gardiol.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum