Skip to content

Commit

Permalink
Add new test to bash_sudo_remove_config
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Acosta <[email protected]>
  • Loading branch information
mrkanon committed Feb 27, 2025
1 parent fa5e9b9 commit 330fa59
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

echo "%wheel ALL=(ALL) NOPASSWD: /bin/systemctl, /bin/lsof, /bin/date" >> /etc/sudoers
chmod 440 /etc/sudoers

mkdir -p /etc/sudoers.d
echo "%wheel ALL=(ALL) NOPASSWD: /bin/systemctl, /bin/lsof, /bin/date" >> /etc/sudoers.d/sudoers
chmod 440 /etc/sudoers.d/sudoers

0 comments on commit 330fa59

Please sign in to comment.