以“用户"身份运行 Quartz.NET 作业- 权限问题 [英] run a Quartz.NET job as "user" - permissions issue

查看:46
本文介绍了以“用户"身份运行 Quartz.NET 作业- 权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:我有一个控制台应用程序需要访问具有读/写权限的网络共享.手动运行没有问题.

Scenario: I have a console application that needs to access a network share with read/write permissions. There is no problems when run it manually.

问题:当我将此应用程序作为作业添加到我的quartz.net 服务器时,它无法访问共享.我无权更改网络共享的权限,所以基本上我需要我的石英作业,或者如果需要的话,我的石英服务器以我(或具有适当权限的用户的身份)运行作业.

The problem: When I add this application as a job in my quartz.net server, it cannot access the share. I do not have access to change permissions on the network share, so basically I need my quartz job or if necessary my quartz server to run jobs as me (or as a user that has the proper permissions).

关于如何实现这一点的任何想法?

Any ideas in how to accomplish this?

谢谢

推荐答案

您也可以使用 模拟 以动态更改您正在运行的用户.

You can also use impersonation to change the user you're running as on the fly.

这篇关于以“用户"身份运行 Quartz.NET 作业- 权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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