Quantcast
Channel: Execute sudo without Password? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 14

Answer by user677955 for Execute sudo without Password?

$
0
0

To never prompt the current user for a password when that user uses sudo run this command:

echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/dont-prompt-$USER-for-sudo-password

Viewing all articles
Browse latest Browse all 14

Trending Articles