My Oracle Support Banner

Oracle Linux: After Updating sudo package, sudo Gives Permission Denied Error (Doc ID 2629261.1)

Last updated on FEBRUARY 26, 2020

Applies to:

Linux OS - Version Oracle Linux 7.7 and later
Linux x86-64

Symptoms

After updating sudo package to version 1.8.23-1.el7 or later, sudo gives a permission denied error.

$ sudo -l
sudo: PAM account management error: Permission denied

In /var/log/secure log, found following messages:

Jan 6 12:15:32 <hostname> su: pam_unix(su-l:session): session opened for user <user> by root(uid=0)
Jan 6 12:25:35 <hostname> sudo: pam_sss(sudo:account): Access denied for user <user>: 6 (Permission denied)
Jan 6 12:25:40 <hostname> su: pam_unix(su-l:session): session closed for user <user>

In /var/log/messages log, found following messages:

Jan 6 12:13:50 <hostname> su: (to root) pa001002 on pts/1
Jan 6 12:14:05 <hostname> su: (to <user>) pa001002 on pts/1
Jan 6 12:14:09 <hostname> sudo: <user> : PAM account management error: Permission denied ; TTY=pts/1 ; PWD=/home/<user> ; USER=root ; COMMAND=list

Changes

Update sudo package to version 1.8.23-1.el7 or later

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.