From: Siraaj Khandkar Date: Sat, 31 Oct 2020 03:16:55 +0000 (-0400) Subject: Call sudo non-interactively X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=22f1641ffee69609f220a143c67640d402811dc7;p=khome.git Call sudo non-interactively --- diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index df255d7..0069028 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -520,7 +520,7 @@ motd() { echo "${indent_unit}servers:" # WARN: ensure: $USER ALL=(ALL) NOPASSWD:/bin/netstat - sudo netstat -tlnp \ + sudo -n netstat -tlnp \ | awk 'NR > 2 {print $7}' \ | awk -F/ '{print $2}' \ | sort -u \