sudoers Linux Origin: Platform & cloud Last updated 13 Oct 2026

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

Exact message you may see is not in the sudoers fileThis incident will be reportedis not allowed to run sudo
Seen on: Linux

Meaning

sudo access comes from /etc/sudoers or group membership (sudo on Debian/Ubuntu, wheel on RHEL/Fedora). New users on servers and some fresh desktop installs don’t have it.

Common causes

  • User not in the sudo/wheel group
  • Group added but session not refreshed (log out/in)
  • Broken sudoers file after manual editing

⚡ Quick fix

  1. As root: usermod -aG sudo username (Ubuntu) or usermod -aG wheel username (RHEL)
  2. Log out and back in
  3. Always edit sudoers with visudo

Detailed fix by platform

Linux

  1. Grant sudo (run as root, e.g. su -):
    bash
    usermod -aG sudo deploy       # Debian/Ubuntu
    usermod -aG wheel deploy      # RHEL/CentOS/Fedora
    groups deploy

How to diagnose

  1. Groups — groups — sudo or wheel present?
  2. Session — Logged in again since?
  3. Config — visudo -c passes?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

AADSTS65001 — AADSTS65001: The user or administrator has not consented to use the application (Azure)AADSTS65001Access to the path is denied — System.UnauthorizedAccessException: Access to the path 'x' is denied (.NET)Access to the path is…AccessDeniedException — java.nio.file.AccessDeniedException: /path (Java)AccessDeniedExceptionAuthentication token manipulation error — passwd: Authentication token manipulation error (Linux)Authentication token …avc: denied — SELinux is preventing ... / avc: denied { read } for pid=... (permission denied despite correct permissions) (Linux)avc: deniedclipboard write blocked — NotAllowedError: Failed to execute 'writeText' on 'Clipboard': Document is not focused. (JavaScript)clipboard write block…dpkg lock — E: Could not get lock /var/lib/dpkg/lock-frontend — is another process using it? (Linux)dpkg lockEACCES — Linux: Permission denied (Linux)EACCESsudoers

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.