server_optimize

This commit is contained in:
simono41 2019-08-05 13:50:53 +02:00
parent 9ae38e0b51
commit 56396c1fa8

View file

@ -20,9 +20,6 @@ if [[ $EUID -ne 0 ]]; then
else else
echo "Als ROOT angemeldet!!!" echo "Als ROOT angemeldet!!!"
fi fi
echo "Als root Angemeldet"
sleep 5
function makesshsecure() { function makesshsecure() {
@ -67,7 +64,7 @@ function makeuser() {
groupadd wheel groupadd wheel
fi fi
echo "root ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers echo "root ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
echo "%wheel ALL=(ALL)" >> /etc/sudoers echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers
adduser user1 adduser user1
adduser user1 wheel adduser user1 wheel
} }