[augeas-devel] [PATCH 2 of 4] Add a test with new tricky commands in spec

Raphael Pinson raphink at gmail.com
Tue Aug 12 11:59:04 UTC 2008


# HG changeset patch
# User Raphael Pinson <raphink at gmail.com>
# Date 1218541956 -7200
# Node ID a4d10e80f1b9cced80837440a00e3ac5cbee30b4
# Parent  c7493880b0712a521f2bd2ab631497e229a593b0
Add a test with new tricky commands in spec

diff -r c7493880b071 -r a4d10e80f1b9 lenses/tests/test_sudoers.aug
--- a/lenses/tests/test_sudoers.aug	Tue Aug 12 13:52:15 2008 +0200
+++ b/lenses/tests/test_sudoers.aug	Tue Aug 12 13:52:36 2008 +0200
@@ -32,6 +32,8 @@ www-data +biglab=(rpinson)NOEXEC: ICAL \
 www-data +biglab=(rpinson)NOEXEC: ICAL \
         : \
         localhost = NOPASSWD: 	/usr/bin/test
+
++secretaries           ALPHA = /usr/bin/su [!-]*, !/usr/bin/su *root*
 "
 
    test Sudoers.lns get conf = 
@@ -108,5 +110,12 @@ www-data +biglab=(rpinson)NOEXEC: ICAL \
 	      { "host" = "localhost" }
 	      { "command" = "/usr/bin/test"
 	          { "tag" = "NOPASSWD" } } } }
+      {}
+      { "spec"
+          { "user"    = "+secretaries" }
+	  { "host_group"
+	      { "host" = "ALPHA" }
+	      { "command" = "/usr/bin/su [!-]*" }
+	      { "command" = "!/usr/bin/su *root*" } } }
       
 




More information about the augeas-devel mailing list