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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.