Re: windows services question
- From: "anton bassov" <soviet_bloke@xxxxxxxxxxx>
- Date: 19 Dec 2006 02:12:42 -0800
You simply need the "SeDebugPrivilege" in your token which only administrators
have by default
This is wrong....
Only LocalSystem and Admins have this privilege in their tokens, in the
first place. It is disabled for Admins by default, but enabled for
LocalSystem, because the system must be able to open any process for
any access....
system account is also an administrator BTW
This is wrong as well....
The trick is to enable it first
Exactly, but Task Manager does not do it - this is why you cannot
terminate a process
that runs under the LocalSystem account, via it...
However, if some third-party app does it, there is nothing that OP can
do about it
Anton Bassov
Larry Smith wrote:
Well, they would be unable to kill a service process from the Task
Manager, because
services run under the LocalSystem account, so that other users cannot
open a handle
with "terminate" access to it. Task Manager does not seem to do
anything in order to assign itself the token of a system account even
if it runs under the account with Admin rights, so that users would be
unable to terminate a process via it.
You can terminate a service as an administrator or anyone else for that
matter. You simply need the "SeDebugPrivilege" in your token which only
administrators have by default (system account is also an administrator
BTW). The trick is to enable it first since most privileges are disabled by
default even for administrators. This is the reason why administrators can't
terminate a service from the task manager normally. The privilege exists in
their token but they simply have to enable it first (which is very simple to
do in code).
.
- Follow-Ups:
- Re: windows services question
- From: Larry Smith
- Re: windows services question
- References:
- Re: windows services question
- From: anton bassov
- Re: windows services question
- From: Larry Smith
- Re: windows services question
- Prev by Date: Re: Subystem concept in windows and linux
- Next by Date: Re: Subystem concept in windows and linux
- Previous by thread: Re: windows services question
- Next by thread: Re: windows services question
- Index(es):
Relevant Pages
|
Loading