1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-09-19 05:34:42 -04:00

Fix chmod 700 /home/*

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-12-31 14:40:36 -07:00
parent 499b187570
commit 34ca17f672
Signed by: Tomster
GPG Key ID: 555C902A34EC968F
5 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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*

View File

@ -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*