Mohammed Morsi
2009-Aug-04 16:00 UTC
[Ovirt-devel] [PATCH node] fix anyterm / sudoers setup
--- scripts/ovirt-functions | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/scripts/ovirt-functions b/scripts/ovirt-functions index 98e88e7..7edb0d2 100644 --- a/scripts/ovirt-functions +++ b/scripts/ovirt-functions @@ -219,7 +219,10 @@ ANYTERM_LOCAL_ONLY=false EOF # permit it to run the virsh console - echo "anyterm ALL=NOPASSWD: /usr/bin/virsh console *" >> /etc/sudoers + cat >> /etc/sudoers << EOF +anyterm ALL=NOPASSWD: /usr/bin/virsh console * +anyterm ALL=NOPASSWD: /usr/bin/virsh console +EOF } md5() { -- 1.6.0.6