All commands return Permission denied error on pod launched on RHEL 9

Solution Verified - Updated -

Issue

  • All commands return 'Permission denied' error on Pod after launching it on RHEL OS
  [root@SERVER bin]# pwd
  /var/lib/rancher/rke2/bin
  [root@SERVER bin]# ./ctr --address /run/k3s/containerd/containerd.sock --namespace k8s.io run --privileged -t -- 
  rm  docker.io/rancher/klipper-helm@sha256:XXXXXXXXXX50dbc6d439670266 test2 /bin/bash
  WARN[0000] DEPRECATION: The `configs` property of `[plugins."io.containerd.grpc.v1.cri".registry]` is deprecated 
  since containerd v1.5 and will be removed in containerd v2.1.Use `config_path` instead.
  Error loading shared library libreadline.so.8: Permission denied (needed by /bin/bash)
  Error relocating /bin/bash: unstifle_history: symbol not found
  Error relocating /bin/bash: rl_make_bare_keymap: symbol not found
  Error relocating /bin/bash: rl_bind_key_if_unbound_in_map: symbol not found
  Error relocating /bin/bash: rl_macro_dumper: symbol not found
  /bin/sh: [pwd: Permission denied
  ~ $ ls
  /bin/sh: ls: Permission denied
  ~ $ ls
  /bin/sh: ls: Permission denied
  ~ $ bash
  /bin/sh: bash: Permission denied

Environment

  • Red Hat Enterprise Linux 9
  • Rancher

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content