Initial commit
This commit is contained in:
9
notes.txt
Normal file
9
notes.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
sudo chown root:root /usr/local/bin/ban.sh /usr/local/bin/unban.sh
|
||||
sudo chmod 700 /usr/local/bin/ban.sh /usr/local/bin/unban.sh # only root can edit
|
||||
sudo chattr +i /usr/local/bin/ban.sh /usr/local/bin/unban.sh # make files immutable
|
||||
|
||||
|
||||
sudoers:
|
||||
|
||||
ubuntu ALL=(root) NOPASSWD: /home/ubuntu/Projekt/ids/ban.sh, /home/ubuntu/Projekt/ids/unban.sh
|
||||
Reference in New Issue
Block a user