Execute sudo without a Password

If you use terminal often, then you must face an annoying problem: you need to enter the password everytime when you want superuser access with the command sudo. So there is a way to solve it without sharing the root user access: add the user you log in as to the wheel group.

id-command

The "aldora" at the "uid=501(aldora)" tells you the account name.

// example: sudo usermod -a -G admin aldora
sudo usermod -a -G <group name> <your account name>
# enable user <account name> to gain superuser access without password
<account name> ALL=(ALL) NOPASSWD:ALL

Replace "account name" with the account name you get from id command, for example: aldora ALL=(ALL) NOPASSWD:ALL

ссс