What needs to be configured for a user to execute rootless Podman commands without using SSH?
Issue
- When using
podman
as a rootless user, typically that user must have gained access to the system viassh
in order to ensure all the correct settings and variables are in place forpodman
to execute properly under that user. - When using
ssh
to log in as a user, rootlesspodman
commands work fine, however when usingsu
orsu - myuser
, I get errors when runningpodman
commands. - What settings must be enabled to ensure that a user does not need to use
ssh
to gain access to a system, but can still execute rootlesspodman
commands? - Rootless
podman
commands fail withError: could not get runtime: cannot re-exec process
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
podman
executed as a non-root user
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.