If I'm using process.kill, I can only kill processes,
which are created in the same login session. (I'm using
win2000, I'm in the local admin group) Processes created
by me in earlier logins or even processes of other
accounts cannot be killed. I get exceptions, like "You
have no permission...".
I've tried to do the job in a console application and in a
service running under my account (which is in the local
admin group of win2000), but I have the effects described
above. (The goal is to do process cleaning as a service.)
In the TaskManager I can kill the processes, which I
cannot in vb.net. The zones "My Computer" and "Local
Intranet" are set to "Full Trust".
Any ideas where to get/set the missing permission for e.g.
kill a process by someone in the admin group?
Joe 7 2971
Try setting the service to the local system account rather than your named
account and allow it to interact with the desktop.
Just a thought !
Regards - OHM
Joe wrote: If I'm using process.kill, I can only kill processes, which are created in the same login session. (I'm using win2000, I'm in the local admin group) Processes created by me in earlier logins or even processes of other accounts cannot be killed. I get exceptions, like "You have no permission...".
I've tried to do the job in a console application and in a service running under my account (which is in the local admin group of win2000), but I have the effects described above. (The goal is to do process cleaning as a service.)
In the TaskManager I can kill the processes, which I cannot in vb.net. The zones "My Computer" and "Local Intranet" are set to "Full Trust".
Any ideas where to get/set the missing permission for e.g. kill a process by someone in the admin group?
Joe
Hi!
---> Joe: Sorry, for getting into your discussion but I was looking for this
quite long...
---> OHM: Do you have any idea how to set interactivity of a service from a
program??? I really need it...
Please help...
Sure. Go into the services panel in control panel, choose the service and
then set to system.
Regards OHM
zurg wrote: Hi! ---> Joe: Sorry, for getting into your discussion but I was looking for this quite long... ---> OHM: Do you have any idea how to set interactivity of a service from a program??? I really need it... Please help...
Actually I misunderstood your question. You mean programatically change it?.
Well, you cannot mitigate the WIN32 System security. So you would need to
start the process with a specific ID you cannot simply change it while its
running.
Regards - OHM
One Handed Man wrote: Sure. Go into the services panel in control panel, choose the service and then set to system.
Regards OHM
zurg wrote: Hi! ---> Joe: Sorry, for getting into your discussion but I was looking for this quite long... ---> OHM: Do you have any idea how to set interactivity of a service from a program??? I really need it... Please help...
If it would be that easy, the console application should
have done the job without doing anything...
BTW, the service have to run under a named account because
it has also another tasks to do, which need it. But the
question isn't the service, but the killing of processes.
Joe -----Original Message----- Try setting the service to the local system account
rather than your namedaccount and allow it to interact with the desktop.
Just a thought !
Regards - OHM
Joe wrote: If I'm using process.kill, I can only kill processes, which are created in the same login session. (I'm using win2000, I'm in the local admin group) Processes created by me in earlier logins or even processes of other accounts cannot be killed. I get exceptions, like "You have no permission...".
I've tried to do the job in a console application and
in a service running under my account (which is in the local admin group of win2000), but I have the effects
described above. (The goal is to do process cleaning as a
service.) In the TaskManager I can kill the processes, which I cannot in vb.net. The zones "My Computer" and "Local Intranet" are set to "Full Trust".
Any ideas where to get/set the missing permission for
e.g. kill a process by someone in the admin group?
Joe
.
Yes, I was asking how to do it programicly...
Is it possible to change the interactivity BEFORE running the service?
Mayby there is any other way?
Tell me if you know any...
I have to make service interactive but I can do it during instalaction or
later - no problem...
So if you know any way to do that just let me know...
Could you guys just go away with your thread to your own?
Max -----Original Message----- Yes, I was asking how to do it programicly... Is it possible to change the interactivity BEFORE running
the service?Mayby there is any other way? Tell me if you know any... I have to make service interactive but I can do it during
instalaction orlater - no problem... So if you know any way to do that just let me know...
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob Swerdlow |
last post by:
My application starts up a number of processes for various purposes using:
self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py")
and then shuts them down when appropriate with
os.kill(self.popen.pid, signal.SIGTERM)
Everything works fine on MacOSX. However, I'm doing a port to Solaris (so I
can run it on my web site) and find...
|
by: Fred |
last post by:
There is a setting in INIT.ORA that has the unintended side-effect of
making sure the ALTER SYSTEM KILL SESSION command has immediate affect.
Without this setting, I've seen some instances where the session reports
as being KILLED in V$SESSION but is not physically removed until the
instance is bounced. Does anyone remember this value offhand?
|
by: pattanawadee |
last post by:
Deall All,
Could anybody suggestion me How to kill all inherrit processes
(sibling child,previous and parent process) in the case I know only
child process id and user id, For example I strart to trace pid 124 of
user A (uid = 100) and then I noticed that he doing something wrong
so, I get process id now process id is 156 (supposed) then I...
|
by: Manfred Braun |
last post by:
Hi All,
I am writing a tool, which should monitor some exe-processes, which are not
very solid. Th main function is to re-start them, if they hung, but this is
complicated. I can detect things like no longer generating IO or such
properties and I use WMI to do that. I am also looking for attached
subprocesses, which are one of the system...
|
by: WATYF |
last post by:
This is my problem... I have some code that starts a Process and
returns it to a variable... (prcBat)
At any time while that process is running... I want to be able to Kill
it by pressing a command button in the application.
So the code goes something like this:
psiBat = New ProcessStartInfo(arrRun.Item(0)(1))
psiBat.WindowStyle =...
| |
by: Dino Buljubasic |
last post by:
My application can allow a user to open a file for viewing by fetching
file data from database, creating the file in a temp directory and
starting appropriate process (i.e. Adobe or any other depending of
file type) to open the file.
when I close my application, it is suppose to clean all files it
created in temp directory.
I do this by...
|
by: elrondrules |
last post by:
Hi
Am new to python and need your help!!
this is my code snip.
within my python script I have the following commands..
<snip>
import os
|
by: Richard Rossel |
last post by:
Hi Fellows,
I have a problem with process termination. I have a python code that
apache runs through a django interface.
The code is very simple, first, it creates a process with the
subprocess.Popen call, and afterwards, (using a web request) the
python code uses the PID of the previously created process(stored in a
db) and kills it with an...
|
by: =?Utf-8?B?WVhR?= |
last post by:
Hello,
In the parent process(A), run update function, and start the update
process(B), in B process, kill A, then download and update files, then
restart A.
I want to know can the B process kill A process?
Thank you
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |