7 lines
175 B
Bash
Executable File
7 lines
175 B
Bash
Executable File
#!/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
|