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

Answer by Eric Landry for Execute sudo without Password?

$
0
0

Nice one-liner to remove sudo prompts for the current user

sudo bash -c 'echo "$(logname) ALL=(ALL:ALL) NOPASSWD: ALL" | (EDITOR="tee -a" visudo)'

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>