Race condition when creating /var/log/sudo-io directory

Solution Verified - Updated -

Issue

sudo fails after enabling sudo io login. The following error is seen when attempt to sudo'ing:

$ sudo bash
[sudo] password for <username>:
sudo: unable to create /var/log/sudo-io/<username>/00/00/02: File exists
sudo: error initializing I/O plugin sudoers_io

Environment

RHEL7.3

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