Home » Linux Host, Ubuntu, SysAdmin » Commands and Packages » Fix : Lost Sudo user in Linux

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
# adduser username sudo
# reboot

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

Subscribe our Rurban Life YouTube Channel.. "Rural Life, Urban LifeStyle"

Leave a Comment