Sitecore 文件夹 & IIS 权限

发布于 2024-10-19 15:30:46 字数 711 浏览 2 评论 0原文

设置或移动 Sitecore 解决方案时,您必须记住设置正确的文件夹权限和 IIS 权限。

它类似于此处的第 3.3.3.2 - 3.3.3.9 节: http:// /sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%205,-d-,3/Installation/EXE%20Installation.aspx

文件夹权限通常在使用安装程序时设置,但在使用时则不然使用 Zip 或只是移动现有的解决方案。

您可以在此处使用指南(适用于 Sitecore 6):http ://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/Installation.aspx

但是执行步骤 3.5 到 3.6.5 很麻烦。

有人制作过可以或多或少自动执行此操作的脚本或程序吗?

我们将不胜感激。

When setting up or moving a Sitecore solution, you have to remember to setup the correct folder permissions and IIS permissions.

It something like sections 3.3.3.2 - 3.3.3.9 here:
http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%205,-d-,3/Installation/EXE%20Installation.aspx

The folder permissions are usually setup when using the installer, but not when using the Zip or just moving an existing solution.

You could use the guides (for Sitecore 6) here: http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/Installation.aspx

But going through steps 3.5 to 3.6.5 is bothersome.

Anyone made any scripts or programs that could do this more or less automatically?

It will be greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

绅刃 2024-10-26 15:30:46

假设您正在使用非生产实例:

在非生产环境中,通常最简单的方法是授予 ASP.NET 帐户和匿名 Internet 用户帐户对网站和数据文件夹及其所有子文件夹的完全控制权,并授予 NETWORK SERVICE 用户对 D: 的完全控制权。 \Sitecore\Databases 文件夹。

所以(权限是递归设置的):

ASP.NET 帐户(IIS 7 中的 IUSR)&匿名用户:完全控制:

  • /Website
  • /Data

网络服务(默认 SQL Server 帐户):完全控制:

  • /Databases

或者您可以Cacls设置文件的权限从命令行进入/文件夹。

例如,您可以使用以下语句授予 Administrator 用户对 c:\fileWrite AND Delete 权限/代码>

icacls c:\file /grant Administrator:(D,WDAC)

Assuming you are playing around with a non-production instance:

in non-production environments, it‘s generally easiest to grant the ASP.NET account and the anonymous Internet user account Full Control of the Website and Data folders as well as all their descendants and grant the NETWORK SERVICE user full control of D:\Sitecore\Databases folder.

So (The permissions are set recursively):

ASP.NET account (IUSR in IIS 7) & Anonymous user: FULL CONTROL OVER:

  • /Website
  • /Data

NETWORK SERVICE (default SQL Server account): FULL CONTROL OVER:

  • /Databases

Alternatively you could Cacls to set permissions to a file/folder from the commandline.

For example you could use the following statement to grant the Administrator user Write AND Delete permissions on c:\file

icacls c:\file /grant Administrator:(D,WDAC)
感性不性感 2024-10-26 15:30:46

我正在使用这个脚本

Option Explicit

Dim fso, path

' get current directory
set fso = createobject("Scripting.FileSystemObject")
path = fso.GetFolder(".").Path

WScript.StdErr.WriteLine "Setting up rights"
WScript.StdOut.WriteLine "Path:" &  path

Dim appname

appname = InputBox("Name of the App Pool", , "AppPool")

If appname = "" Then
    Wscript.Quit
End If

Dim wsShell

Set wsShell = WScript.CreateObject ("WSCript.Shell")

'wsShell.run "icacls """+ path + """ /inheritance:r"
wsShell.run "icacls """+ path + """ /inheritance:e /grant ""IIS AppPool\" + appname + """:(RX)"
wsShell.run "icacls """+ path + "\App_Data"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\sitecore\shell"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\temp"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\upload"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"

set wsShell = Nothing

I am using this script

Option Explicit

Dim fso, path

' get current directory
set fso = createobject("Scripting.FileSystemObject")
path = fso.GetFolder(".").Path

WScript.StdErr.WriteLine "Setting up rights"
WScript.StdOut.WriteLine "Path:" &  path

Dim appname

appname = InputBox("Name of the App Pool", , "AppPool")

If appname = "" Then
    Wscript.Quit
End If

Dim wsShell

Set wsShell = WScript.CreateObject ("WSCript.Shell")

'wsShell.run "icacls """+ path + """ /inheritance:r"
wsShell.run "icacls """+ path + """ /inheritance:e /grant ""IIS AppPool\" + appname + """:(RX)"
wsShell.run "icacls """+ path + "\App_Data"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\sitecore\shell"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\temp"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"
wsShell.run "icacls """+ path + "\upload"" /inheritance:e /grant ""IIS AppPool\" + appname + """:(F)"

set wsShell = Nothing
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文