跨网络创建文件夹 [英] CreateFolder across network

查看:88
本文介绍了跨网络创建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


这看起来像一个非常简单的问题,但我认为没有一个简单的

答案。如果有,我会很高兴听到它。我正在尝试创建一个文件夹,

是的,这就是全部。我可以用一个vbscript来做,但是当我把它放在一个

asp页面并加载页面时,我得到一条错误500消息。基本上,我是

使用...


if(不是fso.FolderExists(" \\\\\\\\\\\\ ;

request.Querystring(i)))然后

fso.CreateFolder(" \\ServerName \Clients\c"& request.Querystring( i))

结束如果


不要担心请求.Querystring(i) - 它是有效的。脚本在fso.CreateFolder行上失败

所以它进入if。


如果我改变了本地服务器文件夹的路径,那么脚本可以工作。它有

与服务器上的权限有关我正在放置文件夹

at。我检查父文件夹权限,我想在其下创建一个新的

文件夹。它有每个人。完全访问 - 所有框都打勾。

计算机,网络服务器和创建文件夹的服务器在同一个域上都是

,可以手动找到,并通过<创建一个文件夹br />
我的网络位置。我被告知我需要我的网络服务器的IUSR帐户添加

到另一台机器上的父文件夹权限。这是对的吗?


有人可以帮我解决一下我在这里可以做些什么吗?


谢谢,

Jesse

Hi all,

This seems like a really simple question but I don''t think there is a simple
answer. If there is I''d be glad to hear it. I am trying to create a folder,
yep, that''s all. I can do it with a vbscript but as soon as I put it in an
asp page and load the page I get an error 500 message. Basically, I am
using...

if (not fso.FolderExists("\\ServerName\Clients\c_" &
request.Querystring(i))) then
fso.CreateFolder("\\ServerName\Clients\c" & request.Querystring(i))
end if

Don''t worry about the request.Querystring(i) - it''s valid. The script fails
on the fso.CreateFolder line so it gets in the if.

If I change the path to a local server folder then the script works. It has
something to do with the permissions at the server I am placing the folder
at. I check the parent folder permissions where I want to create a new
folder under. It has "Everyone" full access - all boxes ticked. Both
computers, the webserver and the server where the folder is to be created are
on the same domain and can be manually sought out, and a folder created, via
my network places. I am told I need the IUSR account of my webserver added
to the parent folder permissions on the other machine. Is this right?

Can somebody work me through what I can do here?

Thanks,
Jesse

推荐答案

明确添加IIS设置中指定的用户,很可能是IUSR。

它不是每个人的一部分


-

Curt Christianson

所有者/首席开发人员,DF软件

网站: http://www.Darkfalz.com

博客: http://blog.Darkfalz.com

Jessard <济***** @ discussions.microsoft.com>在消息中写道

新闻:5D ********************************** @ microsof t.com ...
expressly add the user that is specified in the IIS setup, most likely IUSR.
It''s not part of "everyone"

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Jessard" <Je*****@discussions.microsoft.com> wrote in message
news:5D**********************************@microsof t.com...
大家好,

这似乎是一个非常简单的问题,但我不认为有一个简单的回答。如果有,我会很高兴听到它。我正在尝试创建一个
文件夹,
是的,这就是全部。我可以用一个vbscript来做,但是当我把它放在
一个
asp页面并加载页面时我收到一条错误500消息。基本上,我正在使用......

if(不是fso.FolderExists(" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ (i)))然后如果
不要担心请求.Querystring(i) - 它是有效的。脚本
在fso.CreateFolder行上失败,因此它会进入if。

如果我将路径更改为本地服务器文件夹,则脚本可以正常工作。它与我放置文件夹的服务器上的权限有关。
我检查父文件夹权限,我想在其下创建一个新的
文件夹。它有每个人。完全访问 - 所有框都打勾。
计算机,网络服务器和要创建文件夹的服务器都在同一个域上,可以手动搜索,并创建一个文件夹,
通过<我的网络地点。我被告知我需要我的网络服务器的IUSR帐户
添加到其他计算机上的父文件夹权限。这是对的吗?

有人可以帮我解决一下我在这里可以做些什么吗?

谢谢,
Jesse
Hi all,

This seems like a really simple question but I don''t think there is a
simple
answer. If there is I''d be glad to hear it. I am trying to create a
folder,
yep, that''s all. I can do it with a vbscript but as soon as I put it in
an
asp page and load the page I get an error 500 message. Basically, I am
using...

if (not fso.FolderExists("\\ServerName\Clients\c_" &
request.Querystring(i))) then
fso.CreateFolder("\\ServerName\Clients\c" & request.Querystring(i))
end if

Don''t worry about the request.Querystring(i) - it''s valid. The script
fails
on the fso.CreateFolder line so it gets in the if.

If I change the path to a local server folder then the script works. It
has
something to do with the permissions at the server I am placing the folder
at. I check the parent folder permissions where I want to create a new
folder under. It has "Everyone" full access - all boxes ticked. Both
computers, the webserver and the server where the folder is to be created
are
on the same domain and can be manually sought out, and a folder created,
via
my network places. I am told I need the IUSR account of my webserver
added
to the parent folder permissions on the other machine. Is this right?

Can somebody work me through what I can do here?

Thanks,
Jesse



On Mon,20 Dec 2004 14:01:02 -0800,Jessard

< Je ***** @ discussion.microsoft.com>写道:
On Mon, 20 Dec 2004 14:01:02 -0800, "Jessard"
<Je*****@discussions.microsoft.com> wrote:
大家好,

这似乎是一个非常简单的问题,但我不认为有一个简单的答案。如果有,我会很高兴听到它。我正在尝试创建一个文件夹,
是的,这就是全部。我可以用一个vbscript来做,但是当我把它放在一个
asp页面并加载页面时,我得到一条错误500消息。


首先,500错误:

http://www.aspfaq.com/show.asp?id=2109

至于为什么它在VBScript中有效而不是ASP:


在VBScript中,您以登录用户身份运行。在ASP中,无论用户是为ASP访问定义的用户,都要运行
,通常是

匿名用户。一个的权限与另一个的权限不同。

如果我将路径更改为本地服务器文件夹,则脚本可以正常工作。它与我放置文件夹的服务器上的权限有关。
。我检查父文件夹权限,我想在其下创建一个新的
文件夹。它有每个人。完全访问 - 所有框都打勾。


第3课:所有人是一个群体,而不是系统中的每个帐户。

仅仅因为群组Everyone访问deosn并不意味着用户有
访问权限。该帐户必须位于所有人中。组,并且通过

默认,IIS匿名用户不是(出于安全原因)。

两个
计算机,网络服务器和服务器所在的要在同一个域上创建文件夹,可以手动搜索,并通过我的网络位置创建一个文件夹。


第4课:匿名用户是本地帐户,而不是域帐户。

域名权限没有意义,除非您将帐户配置为

是一个域帐户(不推荐)或者在目标系统上单独授予它访问权限



我被告知我需要添加我的网络服务器的IUSR帐户
到其他机器上的父文件夹权限。这是正确的吗?


否。试图创建文件夹的帐户,很可能是

匿名帐户,需要获得创建文件夹的权限

目标文件夹中的目标系统。微妙,但有一个

的区别。

有人可以帮我完成我能在这里做的事吗?
Hi all,

This seems like a really simple question but I don''t think there is a simple
answer. If there is I''d be glad to hear it. I am trying to create a folder,
yep, that''s all. I can do it with a vbscript but as soon as I put it in an
asp page and load the page I get an error 500 message.
First, the 500 error:

http://www.aspfaq.com/show.asp?id=2109

As for why it works in VBScript and not ASP:

In VBScript you''re running as the logged in user. In ASP you''re
running as whatever user is defined for ASP access, often the
anonymous user. The permissions for one aren''t the same as the other.
If I change the path to a local server folder then the script works. It has
something to do with the permissions at the server I am placing the folder
at. I check the parent folder permissions where I want to create a new
folder under. It has "Everyone" full access - all boxes ticked.
Lesson 3: "Everyone" is a group, not "every account on the system".
Just because the group "Everyone" has access deosn''t mean a user has
access. The account has to be in the "everyone" group, and by
default, the IIS anonymous user isn''t (for security reasons).
Both
computers, the webserver and the server where the folder is to be created are
on the same domain and can be manually sought out, and a folder created, via
my network places.
Lesson 4: The Anonymous user is local account, not a domain account.
Domain permissions are meaningless unless you configure the account to
be a domain account (not recommended) or sepcifically grant it access
on the destination system.
I am told I need the IUSR account of my webserver added
to the parent folder permissions on the other machine. Is this right?
No. The account trying to create the folder, most likely the
anonymous account, needs the permission to create a folder on the
destination system in the destination folder. Subtle, but there''s a
difference.
Can somebody work me through what I can do here?




在IIS系统中给予IUSR帐户至少MODIFY权限

在destnation服务器的文件夹上。


Jeff



Give the IUSR account from the IIS system at least MODIFY permission
on the destnation server''s folder.

Jeff


谢谢Jeff和Curt,


所以我转到目标机器上的文件夹,安全性。我点击添加但是

我看不到网络服务器机器的IUSR帐户。首先,这是

你的意思是什么?如果是这样,需要做些什么才能让它可见?


Jesse


" Jeff Cochran"写道:
Thanks Jeff and Curt,

So I goto the folder on the destination machine, security. I click add but
I cannot see the IUSR account of the webserver machine. Firstly, is this
what you meant? If so, what needs to be done to make it visible?

Jesse

"Jeff Cochran" wrote:
On Mon,20 Dec 2004 14:01:02 -0800,Jessard
< Je ***** @ discussion.microsoft.com> ;写道:
On Mon, 20 Dec 2004 14:01:02 -0800, "Jessard"
<Je*****@discussions.microsoft.com> wrote:
大家好,

这似乎是一个非常简单的问题,但我不认为有一个简单的答案。如果有,我会很高兴听到它。我正在尝试创建一个文件夹,
是的,这就是全部。我可以用vbscript做到但是只要我把它放在一个
asp页面并加载页面我就得到一条错误500消息。
Hi all,

This seems like a really simple question but I don''t think there is a simple
answer. If there is I''d be glad to hear it. I am trying to create a folder,
yep, that''s all. I can do it with a vbscript but as soon as I put it in an
asp page and load the page I get an error 500 message.



首先,500错误:

http://www.aspfaq .com / show.asp?id = 2109

至于为什么它在VBScript而不是ASP中运行:

在VBScript中你运行的是登录用户。在ASP中,无论用户为ASP访问定义了什么,通常都是
匿名用户。一个的权限与另一个的权限不同。



First, the 500 error:

http://www.aspfaq.com/show.asp?id=2109

As for why it works in VBScript and not ASP:

In VBScript you''re running as the logged in user. In ASP you''re
running as whatever user is defined for ASP access, often the
anonymous user. The permissions for one aren''t the same as the other.

如果我将路径更改为本地服务器文件夹,则脚本可以正常工作。它与我放置文件夹的服务器上的权限有关。
。我检查父文件夹权限,我想在其下创建一个新的
文件夹。它有每个人。完全访问 - 所有框都打勾。
If I change the path to a local server folder then the script works. It has
something to do with the permissions at the server I am placing the folder
at. I check the parent folder permissions where I want to create a new
folder under. It has "Everyone" full access - all boxes ticked.



第3课:所有人是一个群体,而不是系统上的每个帐户。
仅仅因为群组每个人都是访问deosn并不意味着用户有访问权限。该帐户必须位于所有人中。组,并且默认情况下,IIS匿名用户不是(出于安全原因)。



Lesson 3: "Everyone" is a group, not "every account on the system".
Just because the group "Everyone" has access deosn''t mean a user has
access. The account has to be in the "everyone" group, and by
default, the IIS anonymous user isn''t (for security reasons).

两者都是
计算机,网络服务器和服务器所在的要创建的文件夹是
在同一个域上,可以手动搜索,并通过我的网络位置创建一个文件夹。
Both
computers, the webserver and the server where the folder is to be created are
on the same domain and can be manually sought out, and a folder created, via
my network places.



第4课:匿名用户是本地帐户,而不是域帐户。
域权限没有意义,除非您将帐户配置为域帐户(不推荐)或在目的地上授予其访问权限
系统。



Lesson 4: The Anonymous user is local account, not a domain account.
Domain permissions are meaningless unless you configure the account to
be a domain account (not recommended) or sepcifically grant it access
on the destination system.

我被告知我需要将我的网络服务器的IUSR帐户添加到其他计算机上的父文件夹权限。这是对的吗?
I am told I need the IUSR account of my webserver added
to the parent folder permissions on the other machine. Is this right?



否。试图创建文件夹的帐户,很可能是匿名帐户,需要在
目的地上创建文件夹的权限目标文件夹中的系统。微妙,但有一点区别。



No. The account trying to create the folder, most likely the
anonymous account, needs the permission to create a folder on the
destination system in the destination folder. Subtle, but there''s a
difference.

有人可以帮我解决一下我在这里可以做些什么吗?
Can somebody work me through what I can do here?



给来自IIS系统的IUSR帐户至少在destnation服务器的文件夹上有MODIFY权限。

Jeff



Give the IUSR account from the IIS system at least MODIFY permission
on the destnation server''s folder.

Jeff



这篇关于跨网络创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆