Software⏱️ 2 min read📅 2026-06-15

How to Fix: Error with sudoers_audit plugin

Error with sudoers_audit plugin fix

Quick Answer: Check the audit plugin configuration in /etc/sudoers.d/ and ensure it is not causing conflicts with other plugins.

The error 'sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied' and 'sudo: error initializing audit plugin sudoers_audit' is encountered when running 'sudo' in a regular account. This issue affects users who are not the root user.

This problem can be frustrating because it prevents users from executing commands that require elevated privileges without being able to access the sudo command. Fortunately, there are steps that can be taken to resolve this issue.

🔍 Why This Happens

  • The primary reason for this error is that the 'sudoers_audit' plugin is not properly configured or loaded in the system. This plugin is used by the 'audit' command to analyze and report on sudo-related activities. When it fails, it can cause issues with sudo functionality.
  • Another possible reason for this issue could be a configuration problem in the /etc/sudo.conf file, where the 'Plugin audit' directive is commented out. However, since you have already uncommented this line, this is unlikely to be the cause of your issue.

🛠️ Step-by-Step Verified Fixes

Enable the sudoers_audit plugin

  1. Step 1: Edit the /etc/sudo.conf file using the 'visudo' command as root. Locate the section where the 'Plugin audit' directive is commented out and uncomment it.
  2. Step 2: Restart the system or reload the sudo configuration to apply the changes. This can be done by running the command 'sudo apt-get update && sudo apt-get install -f' (for Debian-based systems) or 'sudo yum update && sudo yum groupinstall 'sudo'

Alternative Advanced Fix

    🎯 Final Words

    Did this fix your problem?

    If not, try searching for specific error codes.

    🔍 Search Error Database

    ❓ Frequently Asked Questions