add apt
This commit is contained in:
parent
dd90a6151d
commit
d2fe7e9c66
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
echo 'Cmnd_Alias UPDATER_ONLY = /usr/local/bin/updater.sh' >> /etc/sudoers
|
||||
echo '%staff ALL= NOPASSWD: UPDATER_ONLY' >> /etc/sudoers
|
||||
echo '%staff ALL= NOPASSWD: UPDATER_ONLY,/usr/bin/apt-get' >> /etc/sudoers
|
||||
|
||||
echo '#!/bin/bash' >> /usr/local/bin/updater.sh
|
||||
echo 'apt-get update && sudo apt-get upgrade -y' >> /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?? '
|
||||
|
Loading…
Reference in New Issue
Block a user