mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-09 11:41:33 -05:00
Fix chmod 700 /home/*
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
499b187570
commit
34ca17f672
@ -37,7 +37,7 @@ sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc
|
|||||||
echo 'umask 077' | sudo tee -a /etc/bashrc
|
echo 'umask 077' | sudo tee -a /etc/bashrc
|
||||||
|
|
||||||
# Make home directory private
|
# Make home directory private
|
||||||
chmod 700 /home/*
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
# Setup NTS
|
# Setup NTS
|
||||||
sudo rm -rf /etc/chrony/chrony.conf
|
sudo rm -rf /etc/chrony/chrony.conf
|
||||||
|
@ -28,7 +28,7 @@ sudo systemctl mask debug-shell.service
|
|||||||
echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf
|
echo 'CtrlAltDelBurstAction=none' | sudo tee -a /etc/systemd/system.conf
|
||||||
|
|
||||||
# Make home directory private
|
# Make home directory private
|
||||||
chmod 700 /home/*
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
# Setup NTS
|
# Setup NTS
|
||||||
sudo rm -rf /etc/chrony/chrony.conf
|
sudo rm -rf /etc/chrony/chrony.conf
|
||||||
|
@ -39,6 +39,9 @@ OPTIONS="-F 1"' | sudo tee /etc/sysconfig/chronyd
|
|||||||
|
|
||||||
sudo systemctl restart chronyd
|
sudo systemctl restart chronyd
|
||||||
|
|
||||||
|
# Make home directory private
|
||||||
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
# Setup Firewalld
|
# Setup Firewalld
|
||||||
|
|
||||||
sudo firewall-cmd --permanent --remove-service=cockpit
|
sudo firewall-cmd --permanent --remove-service=cockpit
|
||||||
|
@ -38,7 +38,7 @@ sudo apt autoremove -y
|
|||||||
sudo usg fix cis_level2_workstation
|
sudo usg fix cis_level2_workstation
|
||||||
|
|
||||||
# Make home directory private
|
# Make home directory private
|
||||||
chmod 700 /home/*
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
# Remove AIDE
|
# Remove AIDE
|
||||||
sudo apt purge -y aide*
|
sudo apt purge -y aide*
|
||||||
|
@ -41,7 +41,7 @@ sudo apt install -y curl
|
|||||||
#sudo usg fix cis_level2_server
|
#sudo usg fix cis_level2_server
|
||||||
|
|
||||||
# Make home directory private
|
# Make home directory private
|
||||||
chmod 700 /home/*
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
# Remove AIDE
|
# Remove AIDE
|
||||||
#sudo apt purge -y aide*
|
#sudo apt purge -y aide*
|
||||||
|
Loading…
Reference in New Issue
Block a user