应用程序安全性问题 [英] Application Security Question
本文介绍了应用程序安全性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好吧,这应该很简单.可以说我有Drive"Q",我不希望用户能够访问,但我希望我的应用程序可以访问.我必须启用一些设置才能使它正常工作.我有一个用VB编写的文件阅读器,即使我没有特权也可以访问该驱动器,但是当我用C ++做同样的事情时,访问被拒绝.我确定我只是缺少一些设置的地方.
谢谢!
Ok this should be fairly simple. Lets say I have Drive "Q" that I don''t want users to be able to access but I want my application to. Is there some setting some place that I have to enable to get this to work. I have a file reader that I wrote in VB and it is able to access the drive even though I don''t have privelages to do so, but when I do the same thing with C++ I get access denied. I''m sure I''m just missing some setting some place.
Thanks!
推荐答案
我发现 ^ ] on stackoverflow:
您可以设置文件夹安全性,以防止用户访问驱动器/从驱动器中删除.
为应用程序提供一组可用于访问/操作驱动器的凭据.
您可以将系统设置为以指定用户身份运行(例如,运行方式"或使其作为Windows服务运行),也可以使用^ ]来模拟访问该驱动器的用户凭据.
I found this[^] on stackoverflow:
You could setup folder security to prevent the user''s from accessing/deleting from the drive.
Give the application a set of credentials it can use to access/manipulate the drive.
You could either setup the system to run as a specified user (eg "run as" or have it running as a windows service), or use impersonation[^] to impersonate a user credential to access the drive.
这篇关于应用程序安全性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文