Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All commands fail: newuidmap: write to uid_map failed: Operation not permitted #23596

Closed
wspear opened this issue Aug 12, 2024 · 2 comments
Closed
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@wspear
Copy link

wspear commented Aug 12, 2024

Issue Description

All podman commands except 'help' fail with newuidmap error

Steps to reproduce the issue

Steps to reproduce the issue

  1. spack install podman^[email protected]
  2. spack install shadow
  3. spack load shadow
  4. spack load podman
  5. podman version

Describe the results you received

$podman version
ERRO[0000] running /home/wspear/bin/SPACK/spack/opt/spack/linux-ubuntu22.04-westmere/gcc-11.4.0/shadow-4.15.1-scebl4w32yzrxr32gpmomkcfk63j6o5d/bin/newuidmap 1019899 0 1000 1 1 100000 65536: newuidmap: write to uid_map failed: Operation not permitted
Error: cannot set up namespace using "/home/wspear/bin/SPACK/spack/opt/spack/linux-ubuntu22.04-westmere/gcc-11.4.0/shadow-4.15.1-scebl4w32yzrxr32gpmomkcfk63j6o5d/bin/newuidmap": should have setuid or have filecaps setuid: exit status 1

Describe the results you expected

Ideally any podman command should work.

podman info output

I am using a spack installed [email protected] and a spack installed shadow-utils on ubuntu 22.04 for x86_64 (bare metal workstation)

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

No

Additional environment details

n/a

Additional information

Chmodding newuidmap and newgidmap to 4755 and running with '--storage-opt ignore_chown_errors' made no difference.

cat /etc/subuid
wspear:100000:65536
@wspear wspear added the kind/bug Categorizes issue or PR as related to a bug. label Aug 12, 2024
@Luap99
Copy link
Member

Luap99 commented Aug 13, 2024

Chmodding newuidmap and newgidmap to 4755

I have no idea what spack is but it looks like the binary path is under the home dir so is the owner your user? In this case the setuid bit will do nothing. The binary must be owned by root to escalate privs.

@Luap99 Luap99 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 13, 2024
@sehaartuc
Copy link

I've the same issue currenty. Could you be able to find a way to solve it @Luap99 ?
Thanks.

@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Dec 4, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Dec 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants