Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
3.7 KiB

  1. @echo off
  2. cacls > NUL
  3. if not errorlevel 1 echo ERROR - command0 passed, should have failed
  4. cacls /edit > NUL
  5. if not errorlevel 1 echo ERROR - command1 passed, should have failed
  6. cacls /edit /tree > NUL
  7. if not errorlevel 1 echo ERROR - command2 passed, should have failed
  8. cacls file1.c file2.c > NUL
  9. if not errorlevel 1 echo ERROR - command3 passed, should have failed
  10. cacls /grant *.* > NUL
  11. if not errorlevel 1 echo ERROR - command4 passed, should have failed
  12. cacls *.* /notavalidoption > NUL
  13. if not errorlevel 1 echo ERROR - command5 passed, should have failed
  14. cacls *.* /gratification > NUL
  15. if not errorlevel 1 echo ERROR - command6 passed, should have failed
  16. cacls *.* /gx name:C > NUL
  17. if not errorlevel 1 echo ERROR - command7 passed, should have failed
  18. cacls *.* /edit /rx guest > NUL
  19. if not errorlevel 1 echo ERROR - command8 passed, should have failed
  20. cacls *.* /edit /replace guest:C /tx > NUL
  21. if not errorlevel 1 echo ERROR - command9 passed, should have failed
  22. cacls *.* /edit /tree /rx > NUL
  23. if not errorlevel 1 echo ERROR - command10 passed, should have failed
  24. cacls *.* /edit /tree /dx guest > NUL
  25. if not errorlevel 1 echo ERROR - command11 passed, should have failed
  26. cacls *.* /edit/g guest:R > NUL
  27. if not errorlevel 1 echo ERROR - command12 passed, should have failed
  28. cacls *.* /edit /rx guest:C > NUL
  29. if not errorlevel 1 echo ERROR - command13 passed, should have failed
  30. cacls *.* /edit / guest > NUL
  31. if not errorlevel 1 echo ERROR - command14 passed, should have failed
  32. cacls *.* /grant > NUL
  33. if not errorlevel 1 echo ERROR - command15 passed, should have failed
  34. cacls *.* /edit /grant guest > NUL
  35. if not errorlevel 1 echo ERROR - command16 passed, should have failed
  36. cacls *.* /grant :R > NUL
  37. if not errorlevel 1 echo ERROR - command17 passed, should have failed
  38. cacls *.* / > NUL
  39. if not errorlevel 1 echo ERROR - command18 passed, should have failed
  40. cacls *.* / guest > NUL
  41. if not errorlevel 1 echo ERROR - command19 passed, should have failed
  42. cacls *.* /grant :R > NUL
  43. if not errorlevel 1 echo ERROR - command20 passed, should have failed
  44. cacls *.* /revoke guest:C > NUL
  45. if not errorlevel 1 echo ERROR - command21 passed, should have failed
  46. cacls *.* /revoke :C > NUL
  47. if not errorlevel 1 echo ERROR - command22 passed, should have failed
  48. cacls *.* /tree oak > NUL
  49. if not errorlevel 1 echo ERROR - command23 passed, should have failed
  50. cacls *.* /grant guest:F /edit /grant > NUL
  51. if not errorlevel 1 echo ERROR - command24 passed, should have failed
  52. cacls *.* /edit /edit /grant guest:F > NUL
  53. if not errorlevel 1 echo ERROR - command25 passed, should have failed
  54. cacls *.* /grant guest:F /grant everyone:C > NUL
  55. if not errorlevel 1 echo ERROR - command26 passed, should have failed
  56. cacls *.* /grant guest:C /edit /grant everyone:R > NUL
  57. if not errorlevel 1 echo ERROR - command27 passed, should have failed
  58. cacls *.* /revoke guest /deny everyone /revoke "power user" > NUL
  59. if not errorlevel 1 echo ERROR - command29 passed, should have failed
  60. cacls *.* /grant guest:R /replace everyone:R /replace "power user":R > NUL
  61. if not errorlevel 1 echo ERROR - command30 passed, should have failed
  62. cacls *.* /revoke guest /grant everyone:C /deny "power user" /deny administrator > NUL
  63. if not errorlevel 1 echo ERROR - command31 passed, should have failed
  64. cacls *.* /tree /tree > NUL
  65. if not errorlevel 1 echo ERROR - command32 passed, should have failed
  66. cacls *.* /tree /revoke guest /grant everyone:C /deny "power user" /replace administrator:N /tree > NUL
  67. if not errorlevel 1 echo ERROR - command33 passed, should have failed
  68. cacls dog:\catcher > NUL
  69. if not errorlevel 1 echo ERROR - command34 passed, should have failed