• 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

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

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

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