This commit is contained in:
Gogs
2020-05-10 18:29:14 +04:00
parent 7f4e11b073
commit 6a2cd57e6e
17 changed files with 297 additions and 60 deletions

6
shell/3-Sudoers.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
echo $USER' ALL=NOPASSWD: /usr/bin/service, /usr/bin/apt-get update, /usr/bin/apt-get upgrade
' > /tmp/tmp_sudoers
sudo cp /tmp/tmp_sudoers /etc/sudoers.d/$USER