]> granicus.if.org Git - sudo/commitdiff
Use ! not ^ to do negation
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 5 Apr 1999 20:30:15 +0000 (20:30 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 5 Apr 1999 20:30:15 +0000 (20:30 +0000)
sample.sudoers

index 89661ab7fde14ac4c94d0f515ffcff7b741a02ba..d4513677f862dabacb7355a88b76b8e0ccc8ee4c 100644 (file)
@@ -88,4 +88,4 @@ jim           +biglab=ALL
 fred           ALL=(oracle) /bin/ls,(#-2) NOPASSWD:/bin/date
 
 # somedude may su to anyone but root and flags are not allowed
-somedude       ALL=/usr/bin/su [^-]*, !/usr/bin/su *root*
+somedude       ALL=/usr/bin/su [!-]*, !/usr/bin/su *root*