如何授予dll的写/重写权限以在文件夹中写入日志 [英] How to grant write/reaad permissions for a dll to write logs in a folder

查看:125
本文介绍了如何授予dll的写/重写权限以在文件夹中写入日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

我有一个第三方dll文件,它可以在它所在的文件夹中写入调试日志.我知道如何向用户授予权限,但我不知道如何dll文件.

请为我解决此问题,感谢您提供任何建议.

Dear all

I have a third-party dll file, it can write logs for debugging in the folder where it locates. I know how to grant permissions to users but I don''t know how to dll files.

Please help me with this problem, I appreciate for any suggestions.

推荐答案

程序集在执行应用程序的用户的权限下运行.您不授予应用程序内单个程序集的权限
The assembly runs under the permissions of the user who executed the application. You don''t grant permissions to individual assemblies within an application


没有这种东西.

您不授予对可执行文件的权限.文件可以是允许的对象,而不是主题.换句话说,同一进程将根据用户运行的权限使用不同的权限.

—SA
There is not such thing.

You don''t grant permissions to executable files. A file can be an object of permission, not a subject. In other words, the same process will use different permissions depending on what user runs it.

—SA


这篇关于如何授予dll的写/重写权限以在文件夹中写入日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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