简体   繁体   English

网站级别的文件夹对网页的读取/写入/删除权限

[英]site level folder read/write/delete permissions from web page

I am hoping that someone could offer some assistance in helping implement some functionality on a production server. 我希望有人可以提供帮助,以帮助在生产服务器上实现某些功能。

I have a link on a VB.net aspx page that needs to open a folder in a subdirectory of a web site and provide read and write permissions so that files can be copied into and read from as well as deleted. 我在VB.net aspx页面上有一个链接,该链接需要在网站的子目录中打开一个文件夹并提供读写权限,以便可以将文件复制到其中以及从中读取和删除。 ONLY from this folder. 仅来自此文件夹。

I have this functionality working on a dev and demo PC but they are both on my domain. 我可以在开发人员和演示PC上使用此功能,但是它们都在我的域中。 Clicking the link opens Windows Explorer and I can copy /cut & Paste, etc. 单击链接将打开Windows资源管理器,我可以复制/ cut&Paste等。

The public/production PC is on the LAN, but not part of the domain. 公用/生产PC位于LAN上,但不属于域。 I know there are ways to allow folder read/write permissions on a public server like this but I am not too sure on the safest way to do this. 我知道有一些方法可以在这样的公共服务器上允许文件夹读/写权限,但是我不太确定这样做的最安全方法。 The upside, the only users that need to have read/write/delete access are employees. 从正面看,唯一需要读取/写入/删除访问权限的用户是员工。 Forms Authentication, ASP Membership directs non-employees to other pages within the site. 表单身份验证,ASP成员身份将非雇员引导到站点内的其他页面。 Likewise, the membership directs employees to an admin section of the site. 同样,成员资格将员工引导到站点的管理部分。

This is Server 03, Web Edition, so no AD, using IIS 6, and SSEE. 这是Server 03,Web Edition,因此没有使用IIS 6和SSEE的AD。

Any sample code, links to articles, MSDN etc would all be appreciated. 任何示例代码,文章链接,MSDN等都将不胜感激。

Thanks, 谢谢,

the simplest solution is to provide read/write access to directory from IIS. 最简单的解决方案是从IIS提供对目录的读/写访问。 another approach is to tap into the kernel's logon methods and impersonate a user who has read/write access. 另一种方法是利用内核的登录方法并假冒具有读/写访问权限的用户。 here. 这里。

How do I pass credentials to a machine so I can use Microsoft.Win32.RegistryKey.OpenRemoteBaseKey() on it? 如何将凭据传递到计算机,以便可以在计算机上使用Microsoft.Win32.RegistryKey.OpenRemoteBaseKey()? this post my provide some insight into how to go about impersonating a user to perform an operation. 这篇文章提供了一些有关如何模仿用户执行操作的见解。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM