Quantcast
Viewing all articles
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 all articles
Browse latest Browse all 2

Trending Articles