Fix : Lost Sudo user in Linux

Add “Sudo” user

If somehow you Lost a “sudo” user which happened to me today, after upgrading Ubuntu, you can recover the sudo used by following below commands,

switch to root user,

$ su root
Password:
# adduser username sudo
# reboot

Now, after successful reboot, you should have a “sudo” user as your “username”

Hive OS Linux commands for beginners x
Hive OS Linux commands for beginners

Leave a Comment

Sign up to our newsletter!

ADB Commands Android Android Applications Android Build system Application Libraries Application Stack / User Interface Bash / Shell Scripts Bluetooth driver Cloud Technologies Commands and Packages Compilation Content Management System Core Kernel C Programs Development, Debugging and Performance Tools Development and Build Development Environment Setup Django & REST Api Errors & Failures Git Hardware Platforms HTML JAVA Programs Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Multimedia NDK / Middleware / HAL Operating System Concepts PHP Programming Languages Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Source Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized Web Design and Development Website Hosting Wordpress Yocto Embedded Linux