diff options
author | Simon Rettberg | 2014-10-10 15:12:07 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-10 15:12:07 +0200 |
commit | 7148f90348f7bbd502288007511c194d42506ef7 (patch) | |
tree | 4db4a4998ecbb0a9d1d5ad920cfa2aa0dbab20e3 /satellit_installer/includes/10-sudo_config.inc | |
parent | Add syncdaemon (not done yet), rename bwlehrpool user to dmsd (diff) | |
download | setup-scripts-7148f90348f7bbd502288007511c194d42506ef7.tar.gz setup-scripts-7148f90348f7bbd502288007511c194d42506ef7.tar.xz setup-scripts-7148f90348f7bbd502288007511c194d42506ef7.zip |
Add new sudo rules for dmsd and syncdaemon control
Diffstat (limited to 'satellit_installer/includes/10-sudo_config.inc')
-rw-r--r-- | satellit_installer/includes/10-sudo_config.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/satellit_installer/includes/10-sudo_config.inc b/satellit_installer/includes/10-sudo_config.inc index e952bc7..bcfc83d 100644 --- a/satellit_installer/includes/10-sudo_config.inc +++ b/satellit_installer/includes/10-sudo_config.inc @@ -1,6 +1,6 @@ sudo_config() { - TM_SUDO_CONF="/etc/sudoers.d/taskmanager" + local TM_SUDO_CONF="/etc/sudoers.d/taskmanager" if [ ! -e "${TM_SUDO_CONF}" ]; then # generate it @@ -10,6 +10,8 @@ sudo_config() { taskmanager ALL=(root) NOPASSWD: /sbin/reboot taskmanager ALL=(ldadp) NOPASSWD: /opt/taskmanager/scripts/ldadp-launcher taskmanager ALL=(root) NOPASSWD: /opt/taskmanager/scripts/mount-store + taskmanager ALL=(dmsd) NOPASSWD: /opt/dmsd/control.sh + taskmanager ALL=(syncdaemon) NOPASSWD: /opt/syncdaemon/control.sh EOF chmod 0440 "${TM_SUDO_CONF}" || \ |