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”

Leave a Comment