Its not a good idea to grant ALL permission to users like this:
root ALL=(ALL:ALL) ALL
admin ALL=(ALL:ALL) ALL
So to resolve this we have to properly configure sudo user and for that you can use below command:
User_name Machine_name=(Effective_user) command
You can check the below...