Quantcast
Viewing all articles
Browse latest Browse all 14

Answer by paradroid for Execute sudo without Password?

This is a one line solution that also changes files permissions as stated in /etc/sudoers.d/README:

sudo sh -c 'echo "$(logname) ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/$(logname)'&& sudo chmod 440 /etc/sudoers.d/$(logname)

Viewing all articles
Browse latest Browse all 14

Trending Articles



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