何时使用 SeTcbPrivilege? (“作为操作系统的一部分。)
Windows 中的 SeTcbPrivilege
权限用于什么目的?例如,它可以用来在 SYSTEM 帐户下运行程序吗?
For what purpose(s) is the SeTcbPrivilege
privilege in Windows used? Can it be used, for example, to run a program under the SYSTEM account?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
作为操作系统的一部分,您可以执行创建登录令牌等操作。除非您正在编写身份验证提供程序,否则您不太可能需要编写使用此权限的服务。
由于您可以创建访问令牌,因此您可以充当任何用户。当然,这意味着您可以在 SYSTEM 帐户下运行程序,但是还有更简单的方法可以以 SYSTEM 身份运行某些程序。
Acting as a part of the operating system allows you to do things like create login tokens. It's unlikely that you would ever need to write a service that uses this privilege unless you're writing an authentication provider.
Since you can create access tokens, you can act as any user. Of course, this means that you can run programs under the SYSTEM account, but there are much easier ways to run something as SYSTEM.
为了补充加布的答案,这是MS所说的,
来源:Microsoft TechNet
To add to Gabe's answer, here is what MS says,
Source: Microsoft TechNet
SeTcbPrivilege 对于调试目的非常有用。例如,如果您正在开发必须在系统帐户下运行并执行模拟操作的 Windows 服务,则可以方便地将此服务作为独立的 exe 运行。 SeTcbPrivilege 将允许执行此操作。
SeTcbPrivilege is very useful for debugging purpose. For example, if you are developing Windows service that has to be run under system account and perform impersonate things it is conveniently to run this service as standalone exe. SeTcbPrivilege will allow to do this.