sudo without password
To set sudo without asking for a password:
<username> = your user name
Run as root:
bash
visudo -f /etc/sudoers.d/<username>Write:
bash
<username> ALL=(ALL) NOPASSWD: ALLSave & restart console.
One command:
bash
echo "$USER ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER