server_optimize
This commit is contained in:
parent
9ae38e0b51
commit
56396c1fa8
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue