forked from axiom-team/astrXbian
# PERSONNAL DEFCON LEVEL cp ~/.zen/astrXbian/DEFCON ~/.zen/
This commit is contained in:
parent
a2d4cb6ff6
commit
2cdf26fe16
|
@ -47,12 +47,13 @@ echo "Sécurisation DEFCON SUDOERS FAIL2BAN"
|
||||||
## XBIAN fail2ban ERROR correction ##
|
## XBIAN fail2ban ERROR correction ##
|
||||||
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
|
#[....] Starting authentication failure monitor: fail2ban No file(s) found for glob /var/log/auth.log
|
||||||
[[ "$USER" == "xbian" ]] && sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
|
[[ "$USER" == "xbian" ]] && sudo sed -i "s/auth.log/faillog/g" /etc/fail2ban/paths-common.conf
|
||||||
[[ "$USER" == "xbian" ]] && echo "xbian ALL=(ALL) NOPASSWD:ALL" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/astroport')
|
# NODE activates fail2ban IN zen/ipfs_SWARM_refresh.sh
|
||||||
|
|
||||||
### MODIFIYING /etc/sudoers ###
|
### MODIFIYING /etc/sudoers ###
|
||||||
# DEFCON LEVEL < 5
|
[[ "$USER" == "xbian" ]] && echo "xbian ALL=(ALL) NOPASSWD:ALL" | (sudo su -c 'EDITOR="tee" visudo -f /etc/sudoers.d/astroport')
|
||||||
# echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo EDITOR='tee -a' visudo
|
|
||||||
# NODE activates fail2ban IN zen/ipfs_SWARM_refresh.sh
|
# PERSONNAL DEFCON LEVEL
|
||||||
|
# cp ~/.zen/astrXbian/DEFCON ~/.zen/
|
||||||
|
|
||||||
if [[ "$USER" == "xbian" ]]
|
if [[ "$USER" == "xbian" ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue