Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Answer by Cakemox for ssh remote command using password-less sudo fails

Are you a member of the sudo group or admin group? From the sudoers man page:

When multiple entries match for a user, they are applied in order. Where there are multiple matches, the last match is used (which is not necessarily the most specific match).

You can move your bryan ALL=(ALL) NOPASSWD: /usr/bin/whoami line to the bottom so it is the last match. This should keep you from being prompted for a password.


Viewing latest article 1
Browse Latest Browse All 2

Trending Articles



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