sudo command without giving password
echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
sudo command without giving password
echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee -a /etc/sudoers
run command without sudo password
# Run `visudo` to edit the file `/etc/sudoers`:
sudo visudo
# For example, to allow the `shutdown` command to run without a password.
# Add this to the file, replacing `myusername` with your own login name for your PC:
myusername ALL = NOPASSWD: /sbin/shutdown
# NOTE: `sudo` is still required to run the command so you still have to specify the command as:
sudo shutdown
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us