Restricting access to new sudoers file.

This commit is contained in:
Roland 2022-02-07 14:00:40 -07:00
parent 227d33ba78
commit 58562f07b5
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -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