From 22f1641ffee69609f220a143c67640d402811dc7 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Fri, 30 Oct 2020 23:16:55 -0400 Subject: [PATCH] Call sudo non-interactively --- home/lib/login_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \ -- 2.20.1