Linux Sudo Error User “Is Not In The Sudoers File”

March 5th, 2012 by Regaz

Sudo command Unavailable

The Linux Tutorial Shows You in Easy Steps How-to Solve the Sudo command Unavailability and Adding an User to the Sudoers Group on GNU/Linux Systems.

This correspond to Solve “User is Not in the Sudoers File” Issue!

In the case of Installations in the event that the problem can Not be Solved you can often proceed with a Local Installation into your Home directory.

Solve user is not in the sudoers file on Linux - Featured
  1. Ways to Get the SuperUser Powers
    On Ubuntu Based OSs Try Again:

    sudo su

    On Non-Ubuntu Based OSs:

    su -


    su root

    Else Try to Switch to Another User with SuperUser/Admin Privileges!

    su [myUserSuper]

    In some Distros May Try directly with:

    su root

    Then You’ll always Need the Password of the Admin/SuperUser Account…

    If You do Not Dispose of any SuperUser or Lost Pass then Look:

    Making a SuperUser Guide
  2. Edit the sudoers File

    sudo visudo

    Now on GNU/Linux Distros for visudo there are two Default Shell editors:

    • nano
    • vi

    In Case of the vi Editor then Hit ‘i’ to Start Editing

  3. Enabling sudo Command for an User
    Just Below to the line containing:

    root ALL=(ALL:ALL) ALL


    [myBeautifulUser] ALL=(ALL:ALL) ALL

    Last Save Changes & Exit:
    On nano Just Ctrl+x and Confirm
    On vi First Hit Esc and then ‘:wq‘ ;)

  4. You Dispose Now of a Beautiful sudo User :)

Tags: , , , , , , ,