mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Restricting access to new sudoers file.
This commit is contained in:
parent
227d33ba78
commit
58562f07b5
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue