pam_tty_audit.so: fails with error "cannot open session: Permission denied"

Solution Verified - Updated -

Issue

sudo fails with below messages:

# sudo su -
sudo: pam_open_session: Permission denied
sudo: policy plugin failed session initialization

Environment

  • Red Hat Enterprise Linux 7.9
  • pam-1.1.8-23.el7.x86_64
  • pam_tty_audit.so

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