Fix sudo bug

feature/node-rewrite
Sven Slootweg 12 years ago
parent 3c92625cc7
commit 29b801d42f

@ -259,7 +259,7 @@ sudoers = open("/etc/sudoers", "a")
sudoers.write("cvm ALL = (root) NOPASSWD: /home/cvm/logshell, NOPASSWD: /usr/sbin/vzctl, NOPASSWD: /usr/sbin/vzlist, NOPASSWD: /home/cvm/logcmd\n") sudoers.write("cvm ALL = (root) NOPASSWD: /home/cvm/logshell, NOPASSWD: /usr/sbin/vzctl, NOPASSWD: /usr/sbin/vzlist, NOPASSWD: /home/cvm/logcmd\n")
if enable_dropper == "y": if enable_dropper == "y":
sudoers.write("vz ALL = (root) NOPASSWD: /usr/sbin/vzctl enter\n") sudoers.write("vz ALL = (root) NOPASSWD: /usr/sbin/vzctl enter *\n")
sudoers.close() sudoers.close()

Loading…
Cancel
Save