install
This commit is contained in:
parent
d21fcbf9aa
commit
84d2307887
12
install.sh
Normal file
12
install.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo 'Cmnd_Alias UPDATER_ONLY = /usr/local/bin/updater.sh' >> /etc/sudoers
|
||||||
|
echo '%staff ALL= NOPASSWD: UPDATER_ONLY' >> /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 answer
|
||||||
|
sudo usermod -aG staff $answer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user