何时使用 SeTcbPrivilege? (“作为操作系统的一部分。)

发布于 2024-10-21 22:20:12 字数 81 浏览 0 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

一城柳絮吹成雪 2024-10-28 22:20:13

作为操作系统的一部分,您可以执行创建登录令牌等操作。除非您正在编写身份验证提供程序,否则您不太可能需要编写使用此权限的服务。

由于您可以创建访问令牌,因此您可以充当任何用户。当然,这意味着您可以在 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.

浅唱ヾ落雨殇 2024-10-28 22:20:13

为了补充加布的答案,这是MS所说的,

允许进程假设任何用户的身份,从而获得
访问用户有权访问的资源。
通常,只有低级身份验证服务需要此功能
特权。

默认设置:未分配。

请注意,潜在的访问权限并不限于与以下内容相关的内容:
默认用户;调用进程可能会请求任意
额外的权限被添加到访问令牌中。召唤
进程还可能构建一个不提供访问令牌的访问令牌
用于跟踪审核日志中的事件的主要身份。

当服务需要此权限时,将服务配置为记录
使用本地系统帐户,它具有固有的权限。
不要创建单独的帐户并向其分配权限。

来源:Microsoft TechNet

To add to Gabe's answer, here is what MS says,

Allows a process to assume the identity of any user and thus gain
access to the resources that the user is authorized to access.
Typically, only low-level authentication services require this
privilege.

Default setting: Not assigned.

Note that potential access is not limited to what is associated with
the user by default; the calling process might request that arbitrary
additional privileges be added to the access token. The calling
process might also build an access token that does not provide a
primary identity for tracking events in the audit log.

When a service requires this privilege, configure the service to log
on using the Local System account, which has the privilege inherently.
Do not create a separate account and assign the privilege to it.

Source: Microsoft TechNet

冬天旳寂寞 2024-10-28 22:20:13

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文