• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Fix Username Is Not In The Sudoers File Ubuntu

How To Fix Username Is Not In The Sudoers File Ubuntu

By Sourabh / June 3, 2023 Category: How To, Ubuntu

How to fix “username is not in the sudoers file. this incident will be reported in Ubuntu”. This tutorial explains how to fix username is not in the sudoers file for Ubuntu Systems.

When you get the error message, ‘username is not in the sudoers file’, it means that the user sourcedigit is not present in the sudoers file. You must be aware that the sudoers file is a file that defines both user and user group privileges for sudo-related tasks on your system.

Also you get the error message ‘This incident will be reported’. It means that for this error incident, Linux system will create a report of this failed sudo incident.

You can fix this by adding the username to the sudoers file.

First, run the following command to switch to the sudo user:

$ su root

Now edit the sudoers file using nano editor.

# nano /etc/sudoers

Now add a line under the user privilege specification in the sudoers file:

# User privilege specification
root    ALL=(ALL:ALL) ALL
sourcedigit  ALL=(ALL:ALL) ALL

Now save these changes and exit, press CTRL+X to exit and Y to save, and finally Enter.

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap