mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-25 02:31:34 -05:00
Compliance update
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
6a6b775631
commit
5aca397a76
@ -25,7 +25,9 @@ unpriv(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Compliance
|
# Compliance
|
||||||
sudo systemctl disable --now ctrl-alt-del.target
|
sudo systemctl mask ctrl-alt-del.target
|
||||||
|
sudo systemctl mask debug-shell.service
|
||||||
|
sudo systemctl mask kdump.service
|
||||||
|
|
||||||
# Setting umask to 077
|
# Setting umask to 077
|
||||||
umask 077
|
umask 077
|
||||||
|
@ -23,7 +23,8 @@ unpriv(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Compliance
|
# Compliance
|
||||||
sudo systemctl disable --now ctrl-alt-del.target
|
sudo systemctl mask ctrl-alt-del.target
|
||||||
|
sudo systemctl mask debug-shell.service
|
||||||
|
|
||||||
# Setup NTS
|
# Setup NTS
|
||||||
sudo rm -rf /etc/chrony/chrony.conf
|
sudo rm -rf /etc/chrony/chrony.conf
|
||||||
|
@ -21,7 +21,8 @@ output(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Compliance
|
# Compliance
|
||||||
sudo systemctl disable --now ctrl-alt-del.target
|
systemctl mask ctrl-alt-del.target
|
||||||
|
systemctl mask debug-shell.service
|
||||||
|
|
||||||
# Setup NTS
|
# Setup NTS
|
||||||
rm -rf /etc/chrony/chrony.conf
|
rm -rf /etc/chrony/chrony.conf
|
||||||
|
@ -25,7 +25,8 @@ unpriv(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Compliance
|
# Compliance
|
||||||
sudo systemctl disable --now ctrl-alt-del.target
|
sudo systemctl mask ctrl-alt-del.target
|
||||||
|
sudo systemctl mask debug-shell.service
|
||||||
|
|
||||||
# Setup NTS
|
# Setup NTS
|
||||||
sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf
|
sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf
|
||||||
|
@ -33,6 +33,9 @@ sudo apt install -y usg
|
|||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
sudo usg fix cis_level2_workstation
|
sudo usg fix cis_level2_workstation
|
||||||
|
|
||||||
|
sudo systemctl mask ctrl-alt-del.target
|
||||||
|
sudo systemctl mask debug-shell.service
|
||||||
|
|
||||||
# Remove AIDE
|
# Remove AIDE
|
||||||
sudo apt purge -y aide*
|
sudo apt purge -y aide*
|
||||||
|
|
||||||
|
@ -33,6 +33,9 @@ sudo apt install -y usg curl libpam-pwquality
|
|||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
sudo usg fix cis_level2_server
|
sudo usg fix cis_level2_server
|
||||||
|
|
||||||
|
sudo systemctl mask ctrl-alt-del.target
|
||||||
|
sudo systemctl mask debug-shell.service
|
||||||
|
|
||||||
# Remove AIDE
|
# Remove AIDE
|
||||||
sudo apt purge -y aide*
|
sudo apt purge -y aide*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user