Files
MainSite/shell/3-Sudoers.sh
2020-05-10 18:29:14 +04:00

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