程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> .NET網頁編程 >> .NET實例教程 >> IIS下最小權限分配的批處理

IIS下最小權限分配的批處理

編輯:.NET實例教程
隨著server 2008越走越近,很多用戶又一次關注IIS的安全問題,筆者整理介紹在IIS下最小權限分配的批處理文件……
  @echo off

  echo "權限設定"

  echo "刪除C盤的everyone的權限"

  cd/

  cacls "%SystemDrive%" /r "everyone" /e

  cacls "%SystemRoot%" /r "everyone" /e

  cacls "%SystemRoot%/Registration" /r "everyone" /e

  cacls "%SystemDrive%/Documents and Settings" /r "everyone" /e

  echo "刪除C盤的所有的users的訪問權限"

  cd/

  cacls "%SystemDrive%" /r "users" /e

  cacls "%SystemDrive%/Program Files" /r "users" /e

  cacls "%SystemDrive%/Documents and Settings" /r "users" /e

  cacls "%SystemRoot%" /r "users" /e

  cacls "%SystemRoot%/addins" /r "users" /e

  cacls "%SystemRoot%/AppPatch" /r "users" /e

  cacls "%SystemRoot%/Connection Wizard" /r "users" /e

  cacls "%SystemRoot%/Debug" /r "users" /e

  cacls "%SystemRoot%/Driver Cache" /r "users" /e

  cacls "%SystemRoot%/Help" /r "users" /e

  cacls "%SystemRoot%/IIS Temporary Compressed Files" /r "users" /e

  cacls "%SystemRoot%/Java" /r "users" /e

  cacls "%SystemRoot%/msagent" /r "users" /e

  cacls "%SystemRoot%/mui" /r "users" /e

  cacls "%SystemRoot%/repair" /r "users" /e

  cacls "%SystemRoot%/Resources" /r "users" /e

  cacls "%SystemRoot% curity" /r "users" /e

  cacls "%SystemRoot%/system" /r "users" /e

  cacls "%SystemRoot%/TAPI" /r "users" /e

  cacls "%SystemRoot%/Temp" /r "users" /e

  cacls "%SystemRoot%/twain_32" /r "users" /e

  cacls "%SystemRoot%/Web" /r "users" /e

  cacls "%SystemRoot%/WinSxS" /r "users" /e

  cacls "%SystemRoot%/system32/3com_dmi" /r "users" /e

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved