When we execute commands in Linux that require the Sudo command, we are always asked to enter our Sudo password. This may get very annoying when you're configuring and preparing a new machine, for example.
You can disable the Sudo password in three simple steps:
Step 1: Open the Sudoers file:
sudo nano /etc/sudoers
Step 2: Add No-Password entries for the wanted users:
username ALL=(ALL) NOPASSWD:ALL
In the below example, I disable the Sudo password for two users: root and mohamed
Step 3: Save and exit
Save the file with the shortcut CTRL + O then enter.
Finally, exit the file with the shortcut CTRL + X
Now the Sudo password should be disabled successfully :)