Uploaded November 2024 | Updated September 2026, 2 weeks ago
Method 1 Commands Below:-
apt install sudo
usermod -aG sudo YourUserName or usermod -aG wheel YourUserName
Method 2 Commands Below:-
adduser YourUbuntuUsername sudo
chmod 0440 /etc/sudoers
Method 3 Commands Below:-
nano /etc/sudoers
YourUbuntuUsername ALL=(ALL:ALL) ALL
In This Video We Will See How to Fix User or Vboxuser is Not in the Sudoers File This Incident Will Be Reported in UbuntuHere Are The Steps to Fix User or Vboxuser is Not in the Sudoers File This Incident Will Be Reported in UbuntuMethod 11. Type su root & Hit Enter on Your Keyboard2. Enter Your Ubuntu Password & Hit Enter on Your Keyboard3. Type apt install sudo & Hit Enter on Your Keyboard (Command in Description)4. Type usermod -aG sudo YourUserName & Hit Enter on Your Keyboard. If That Command is not Working Try usermod -aG wheel YourUserName (Replace YourUserName to Your Ubuntu Username. You Can See Your Username Displayed Above Where the Above Arrow is Pointed in the Terminal.) (Commands are in Description)5. Type exit & Hit Enter on Your Keyboard6. Type reboot & Hit Enter on Your Keyboard (This Will Reboot Your OS)7. Login To Your Ubuntu8. Now Open Your Terminal9. Try Using the 'sudo' Command That Was Showing an Error for You10. Enter Your Ubuntu Password & Hit Enter on Your Keyboard11. Done!Method 21. Type su root & Hit Enter on Your Keyboard2. Enter Your Ubuntu Password & Hit Enter on Your Keyboard3. Type adduser YourUbuntuUsername sudo & Hit Enter on Your Keyboard (Command in Description) (Replace YourUbuntuUsername To Your Ubuntu Username)4. Type chmod 0440 /etc/sudoers & Hit Enter on Your Keyboard (Command in Description)5. Type exit & Hit Enter on Your Keyboard6. Type reboot & Hit Enter on Your Keyboard (This Will Restart Your Ubuntu)7. Login To Your Ubuntu8. Now Open Your Terminal9. Try Using the 'sudo' Command That Was Showing an Error for You10. Enter Your Ubuntu Password & Hit Enter on Your Keyboard11. Done!Method 31. Type su root & Hit Enter on Your Keyboard2. Type Your Ubuntu Password & Hit Enter on Your Keyboard3. Type nano /etc/sudoers & Hit Enter on Your Keyboard (Command in Description)4. Press & Hold Down Arrow Button on Your Keyboard To Scroll Down (Scroll Down Until You Find root under User Privilege Specification)5. Press Enter To Add New Line Under root at User Privilege Specification6. Press Up Arrow on Your Keyboard To Scroll One Line Up7. Type YourUbuntuUsername ALL=(ALL:ALL) ALL (Command in Description)8. Press CTRL + O on Your Keyboard To Write The File9. Press Enter on Your Keyboard To Save The File10. Press CTRL + X on Your Keyboard To Exit The File11. Type exit & Hit Enter on Your Keyboard12. Type reboot & Hit Enter on Your Keyboard13. Login To Your Ubuntu14. Now Open Your Terminal15. Try Using the 'sudo' Command That Was Showing an Error for You16. Enter Your Ubuntu Password & Hit Enter on Your Keyboard17. Done!
Method 1 Commands Below:-
apt install sudo
usermod -aG sudo YourUserName or usermod -aG wheel YourUserName
Method 2 Commands Below:-
adduser YourUbuntuUsername sudo
chmod 0440 /etc/sudoers
Method 3 Commands Below:-
nano /etc/sudoers
YourUbuntuUsername ALL=(ALL:ALL) ALL
In This Video We Will See How to Fix User or Vboxuser is Not in the Sudoers File This Incident Will Be Reported in UbuntuHere Are The Steps to Fix User or Vboxuser is Not in the Sudoers File This Incident Will Be Reported in UbuntuMethod 11. Type su root & Hit Enter on Your Keyboard2. Enter Your Ubuntu Password & Hit Enter on Your Keyboard3. Type apt install sudo & Hit Enter on Your Keyboard (Command in Description)4. Type usermod -aG sudo YourUserName & Hit Enter on Your Keyboard. If That Command is not Working Try usermod -aG wheel YourUserName (Replace YourUserName to Your Ubuntu Username. You Can See Your Username Displayed Above Where the Above Arrow is Pointed in the Terminal.) (Commands are in Description)5. Type exit & Hit Enter on Your Keyboard6. Type reboot & Hit Enter on Your Keyboard (This Will Reboot Your OS)7. Login To Your Ubuntu8. Now Open Your Terminal9. Try Using the 'sudo' Command That Was Showing an Error for You10. Enter Your Ubuntu Password & Hit Enter on Your Keyboard11. Done!Method 21. Type su root & Hit Enter on Your Keyboard2. Enter Your Ubuntu Password & Hit Enter on Your Keyboard3. Type adduser YourUbuntuUsername sudo & Hit Enter on Your Keyboard (Command in Description) (Replace YourUbuntuUsername To Your Ubuntu Username)4. Type chmod 0440 /etc/sudoers & Hit Enter on Your Keyboard (Command in Description)5. Type exit & Hit Enter on Your Keyboard6. Type reboot & Hit Enter on Your Keyboard (This Will Restart Your Ubuntu)7. Login To Your Ubuntu8. Now Open Your Terminal9. Try Using the 'sudo' Command That Was Showing an Error for You10. Enter Your Ubuntu Password & Hit Enter on Your Keyboard11. Done!Method 31. Type su root & Hit Enter on Your Keyboard2. Type Your Ubuntu Password & Hit Enter on Your Keyboard3. Type nano /etc/sudoers & Hit Enter on Your Keyboard (Command in Description)4. Press & Hold Down Arrow Button on Your Keyboard To Scroll Down (Scroll Down Until You Find root under User Privilege Specification)5. Press Enter To Add New Line Under root at User Privilege Specification6. Press Up Arrow on Your Keyboard To Scroll One Line Up7. Type YourUbuntuUsername ALL=(ALL:ALL) ALL (Command in Description)8. Press CTRL + O on Your Keyboard To Write The File9. Press Enter on Your Keyboard To Save The File10. Press CTRL + X on Your Keyboard To Exit The File11. Type exit & Hit Enter on Your Keyboard12. Type reboot & Hit Enter on Your Keyboard13. Login To Your Ubuntu14. Now Open Your Terminal15. Try Using the 'sudo' Command That Was Showing an Error for You16. Enter Your Ubuntu Password & Hit Enter on Your Keyboard17. Done!










