From 58562f07b54ef26ce832c02f0443e9def0d5b4e5 Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 7 Feb 2022 14:00:40 -0700 Subject: [PATCH] Restricting access to new sudoers file. --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 7b53f13f..5fcff407 100755 --- a/install.sh +++ b/install.sh @@ -88,6 +88,7 @@ chown -R wrolpi:wrolpi /opt/wrolpi cat > /etc/sudoers.d/90-wrolpi << 'EOF' %wrolpi ALL=(ALL) NOPASSWD:/usr/bin/nmcli,/usr/bin/cpufreq-set EOF +chmod 660 /etc/sudoers.d/90-wrolpi # Verify this new file is valid. visudo -c -f /etc/sudoers.d/90-wrolpi