Permissions for Process.Kill()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matthew Wieder

    #1

    Permissions for Process.Kill()

    What permissions must a user have to be able to succesffuly execute a
    Process.Kill? I can run it with Admin privleges but not with regular
    user priveleges - I get an "Access is Denied." The client should be
    able to run our software was a regular user, so what additional
    permission must I grant that user for this to work?
    thanks!

  • Chris Capel

    #2
    Re: Permissions for Process.Kill()

    I believe the relevant permissions aren't .NET imposed, but system imposed.
    If a process is run under the local system account or the administrator
    account, or even under a different regular user's account, then a user
    process isn't able to kill it. Is the process you're trying to kill running
    under the same account as your program is running under?

    Chris

    "Matthew Wieder" <Development@Sa toriGroupInc.co m> wrote in message
    news:#TY5qLPXDH A.2312@TK2MSFTN GP10.phx.gbl...[color=blue]
    > What permissions must a user have to be able to succesffuly execute a
    > Process.Kill? I can run it with Admin privleges but not with regular
    > user priveleges - I get an "Access is Denied." The client should be
    > able to run our software was a regular user, so what additional
    > permission must I grant that user for this to work?
    > thanks!
    >[/color]


    Comment

    • Matthew Wieder

      #3
      Re: Permissions for Process.Kill()

      no - they're running under different account. If given enough
      permissions, I should be able to kill the process though - I'm just
      trying to determine what are the correct permissions to give.
      thanks!

      Chris Capel wrote:
      [color=blue]
      > I believe the relevant permissions aren't .NET imposed, but system imposed.
      > If a process is run under the local system account or the administrator
      > account, or even under a different regular user's account, then a user
      > process isn't able to kill it. Is the process you're trying to kill running
      > under the same account as your program is running under?
      >
      > Chris
      >
      > "Matthew Wieder" <Development@Sa toriGroupInc.co m> wrote in message
      > news:#TY5qLPXDH A.2312@TK2MSFTN GP10.phx.gbl...
      >[color=green]
      >>What permissions must a user have to be able to succesffuly execute a
      >>Process.Kil l? I can run it with Admin privleges but not with regular
      >>user priveleges - I get an "Access is Denied." The client should be
      >>able to run our software was a regular user, so what additional
      >>permission must I grant that user for this to work?
      >>thanks!
      >>[/color]
      >
      >
      >[/color]

      Comment

      • Matthew Wieder

        #4
        Re: Permissions for Process.Kill()

        There are specific permissionsto be bale to kill a process and I'm
        asking what they are - I know if I add the user to the admin group it
        will work, I'm trying to only give him the permissions he needs. Can
        anyone help?
        thanks.

        Chris Capel wrote:[color=blue]
        > You would have to have some way to add the user to a windows group with such
        > permissions. The installation for the program with accomplish this, and it
        > would have to be run under the administrator account. I recommed you search
        > the Platform SDK for the methods you need to do such a thing; this isn't
        > really a CSharp or .NET related issue.
        >
        > Chris
        >
        > "Matthew Wieder" <Development@Sa toriGroupInc.co m> wrote in message
        > news:OCuyygPXDH A.2344@TK2MSFTN GP09.phx.gbl...
        >[color=green]
        >>no - they're running under different account. If given enough
        >>permissions , I should be able to kill the process though - I'm just
        >>trying to determine what are the correct permissions to give.
        >>thanks!
        >>
        >>Chris Capel wrote:
        >>
        >>[color=darkred]
        >>>I believe the relevant permissions aren't .NET imposed, but system[/color][/color]
        >
        > imposed.
        >[color=green][color=darkred]
        >>>If a process is run under the local system account or the administrator
        >>>account, or even under a different regular user's account, then a user
        >>>process isn't able to kill it. Is the process you're trying to kill[/color][/color]
        >
        > running
        >[color=green][color=darkred]
        >>>under the same account as your program is running under?
        >>>
        >>>Chris
        >>>
        >>>"Matthew Wieder" <Development@Sa toriGroupInc.co m> wrote in message
        >>>news:#TY5qLP XDHA.2312@TK2MS FTNGP10.phx.gbl ...
        >>>
        >>>
        >>>>What permissions must a user have to be able to succesffuly execute a
        >>>>Process.Kil l? I can run it with Admin privleges but not with regular
        >>>>user priveleges - I get an "Access is Denied." The client should be
        >>>>able to run our software was a regular user, so what additional
        >>>>permissio n must I grant that user for this to work?
        >>>>thanks!
        >>>>
        >>>
        >>>
        >>>[/color][/color]
        >
        >[/color]

        Comment

        • Willy Denoyette [MVP]

          #5
          Re: Permissions for Process.Kill()

          Matthew Wieder wrote:
          || There are specific permissionsto be bale to kill a process and I'm
          || asking what they are - I know if I add the user to the admin group it
          || will work, I'm trying to only give him the permissions he needs. Can
          || anyone help?
          || thanks.
          ||


          Processes created with the default security descriptor can only be killed by their creators and Administrators.

          Willy.



          Comment

          • Matthew Wieder

            #6
            Re: Permissions for Process.Kill()

            What specifically needs the admin privleges? Obviously the user doesn't
            need admin priveleges on the file system for example. What specific reg
            keys or roles can I add the user to to allow him to kill a process.
            thanks.

            Willy Denoyette [MVP] wrote:
            [color=blue]
            > Matthew Wieder wrote:
            > || There are specific permissionsto be bale to kill a process and I'm
            > || asking what they are - I know if I add the user to the admin group it
            > || will work, I'm trying to only give him the permissions he needs. Can
            > || anyone help?
            > || thanks.
            > ||
            >
            >
            > Processes created with the default security descriptor can only be killed by their creators and Administrators.
            >
            > Willy.
            >
            >
            >[/color]

            Comment

            • Matthew Wieder

              #7
              Re: Permissions for Process.Kill()

              Thank you!

              Willy Denoyette [MVP] wrote:
              [color=blue]
              > Matthew Wieder wrote:
              > || What specifically needs the admin privleges? Obviously the user
              > || doesn't
              > || need admin priveleges on the file system for example. What specific
              > || reg
              > || keys or roles can I add the user to to allow him to kill a process.
              > || thanks.
              > ||
              >
              > Depends on the OS, check User Policy assignments, the user (or group) needs "Debug Program" privileges.
              >
              > Willy.
              >
              >[/color]

              Comment

              Working...