asp.net作为机器管理员 [英] asp.net as machine admin

查看:60
本文介绍了asp.net作为机器管理员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

人们.

我想知道是否有可能以不同于USER/IIS的用户身份在asp.net中执行任务.

我在服务器中有一个文件夹,仅允许管理员访问,并且我不想授予IIS用户的访问权限.

是否可以通过电话IIS来使用管理员凭据访问该文件夹?

谢谢

解决方案

您正在寻找ASP.net模拟:

关于假冒的MSDN文章

ASP.net模仿


选择您要仅授予管理者访问权限的特定文件夹(右键单击安全性选项卡,然后单击编辑按钮,然后添加所需的角色,然后选择要授予该角色的权限).
我认为这就是您要寻找的.

Hi people.

I wonder if it is possible to perform a task in asp.net as a different user than USER/IIS.

I have a folder in the server where only admins are allowed access and I don''t want to grant access for IIS User.

Is it possible to tel IIS to access that folder with admin credentials?

Thanks

解决方案

you''re looking for ASP.net impersonation:

MSDN Article on Impersonation

ASP.net Impersonation


select the particular folder which you want to give access only to managers ( right click go to security tab and click edit button and add the role you want and select the rights you wish to give to the role).
i think this is what you are looking for.


这篇关于asp.net作为机器管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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