Delete install.sh
This commit is contained in:
parent
ec93597993
commit
ea3f88e1f5
13
install.sh
13
install.sh
@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
echo 'Cmnd_Alias UPDATER_ONLY = /usr/local/bin/updater.sh' >> /etc/sudoers
|
||||
echo '%staff ALL= NOPASSWD: UPDATER_ONLY,/usr/bin/apt-get' >> /etc/sudoers
|
||||
|
||||
echo '#!/bin/bash' >> /usr/local/bin/updater.sh
|
||||
echo 'sudo apt-get update && sudo apt-get upgrade -y' >> /usr/local/bin/updater.sh
|
||||
chmod 0755 /usr/local/bin/updater.sh
|
||||
|
||||
printf 'Wie heisst der User?? '
|
||||
read user
|
||||
sudo usermod -aG staff $user
|
||||
|
||||
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQChKZFAUnZpCkiGNvLomOyLSKFaCuTtc0L4MeYCdYKb9se3o0ThQp56B+w8KUB//lsCO2U7msIsPzDB66c5zIa6zS1+gf2+aWcw8ebFsqjeZNoCtEOfr00N2ZgNwnPQnljnHmau453Xj8AgD2SkEhgdDgyzrKL3icwCATiF5RCcnItF3RD2mxH4e0MZtAFMjCCtBB58CUVa9LGkTQQpmkadrYREYh21Mxk/sQ9RguHmUHsD2zliZScZWbzIHyWXJ/5eNITeaTM1o0k3J7U8xGoFuurhcSo6xQqCF/aQZU79i2bzyHBxVtXTQ6S4OHqbUsQPgIgJ+qZqIySi0uoGu0wcUDapiPfL/dzQttvAV/qBA6c+F723rH/WMexe6pUkjused1soZlD4VxA0Tafc3iXTwsgnuKkK4ny8F7FmN/9L+POVbqPwJjDaF34ns2VBlRKxM3lgOQGTHu1MmQ437r5aqOb90ThjZpmzOyOeI8DyxfW8vdwzi9dM1HSPEr1E6MU= root@Admin' >> /home/$user/.ssh/authorized_keys
|
Loading…
Reference in New Issue
Block a user