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.
Ways to Get the SuperUser Powers
On Ubuntu Based OSs Try Again:
On Non-Ubuntu Based OSs:
Else Try to Switch to Another User with SuperUser/Admin Privileges!
In some Distros May Try directly with:
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
Edit the sudoers File
Now on GNU/Linux Distros for visudo there are two Default Shell editors:
In Case of the vi Editor then Hit ‘i’ to Start Editing
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‘ ;)
You Dispose Now of a Beautiful sudo User :)