📖 ~1 min read
Table of contents
Symptom & Impact
podman as a non-root user fails with ‘newuidmap: write to uid_map failed’.
Environment & Reproduction
/etc/subuid or /etc/subgid lacks an allocation for the user.
Root Cause Analysis
useradd in Stream 9 may not pre-populate these files in all paths.
Quick Triage
grep /etc/subuid /etc/subgid; podman unshare cat /proc/self/uid_map.
Step-by-Step Diagnosis
Check newuidmap/newgidmap setuid bits via ls -l.

Solution – Primary Fix
Run usermod –add-subuids 100000-165535 –add-subgids 100000-165535 ; podman system migrate.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Pre-populate subuid/subgid via Ansible user module before login.
Verification & Acceptance Criteria
podman run –rm alpine id succeeds with mapped uids.
Rollback Plan
Restore previous subuid/subgid lines and re-run podman system migrate.
Prevention & Hardening
Bake user subuid ranges into provisioning automation.
Related Errors & Cross-Refs
Related: user namespaces sysctl and slirp4netns version.
Related tutorial: View the step-by-step tutorial for centos-stream-9.
View all centos-stream-9 tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
podman.io rootless docs and Red Hat container chapter.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.