mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Allowing wrolpi user to modify renderd service with sudo without password.
This commit is contained in:
parent
9694f0deca
commit
d32f1a55cd
2 changed files with 6 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ chown -R wrolpi:wrolpi /opt/wrolpi
|
|||
# Give WROLPi group a few privileged commands via sudo without password.
|
||||
cat >/etc/sudoers.d/90-wrolpi <<'EOF'
|
||||
%wrolpi ALL=(ALL) NOPASSWD:/usr/bin/nmcli,/usr/bin/cpufreq-set
|
||||
%wrolpi ALL= NOPASSWD:/usr/bin/systemctl restart renderd.service
|
||||
%wrolpi ALL= NOPASSWD:/usr/bin/systemctl stop renderd.service
|
||||
%wrolpi ALL= NOPASSWD:/usr/bin/systemctl start renderd.service
|
||||
EOF
|
||||
chmod 660 /etc/sudoers.d/90-wrolpi
|
||||
# Verify this new file is valid.
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ chown -R wrolpi:wrolpi /opt/wrolpi
|
|||
# Give WROLPi group a few privileged commands via sudo without password.
|
||||
cat >/etc/sudoers.d/90-wrolpi <<'EOF'
|
||||
%wrolpi ALL=(ALL) NOPASSWD:/usr/bin/nmcli,/usr/bin/cpufreq-set
|
||||
%wrolpi ALL= NOPASSWD:/usr/bin/systemctl restart renderd.service
|
||||
%wrolpi ALL= NOPASSWD:/usr/bin/systemctl stop renderd.service
|
||||
%wrolpi ALL= NOPASSWD:/usr/bin/systemctl start renderd.service
|
||||
EOF
|
||||
chmod 660 /etc/sudoers.d/90-wrolpi
|
||||
# Verify this new file is valid.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue