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
|
||||
echo "Als ROOT angemeldet!!!"
|
||||
fi
|
||||
echo "Als root Angemeldet"
|
||||
|
||||
sleep 5
|
||||
|
||||
function makesshsecure() {
|
||||
|
||||
|
@ -67,7 +64,7 @@ function makeuser() {
|
|||
groupadd wheel
|
||||
fi
|
||||
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 wheel
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue