[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Kill another user's processes on AIX 5.3

Asked by noirfan1 in IBM AIX Unix, Unix Network Security

Tags: AIX 5.3 kill PID process

Hi all-

I'm running into an issue which I am sure has come up before.  I'm using a shell script on AIX 5.3 to list out the processes for an interface, so the user can terminate it for system maintenance.  The problem I've run into is that one user isn't allowed to kill another user's processes, so if one person starts it, they're the only one that can terminate it.

What I'd like to do - from a shell script - is allow any user to terminate the process for the interface whether they started it or not.  I've done this on SCO 100s of times, using the asroot command, but there doesn't seem to be an equivalent on AIX.

I know I could install the sudo program, but the system I'm working on doesn't have a C compiler.  I'm also guessing there is a command equivalent on AIX to asroot, but I've yet to find it.  From a security standpoint, I'd also rather NOT set all the user's IDs to 0, thereby creating a huge hole in the O/S.  I've also tried setting the kill command perms to u+s, to no avail.

As a side note, there is NO WAY for the user to break out of the script and get to a command prompt.  Their logons take them straight to the software, and they then have a menu that can call various shell scripts.  Once they exit the software, they go straight back to the system logon.

Thanks, in advance, for your assistance.
[+][-]10/02/09 09:25 AM, ID: 25479440Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 09:31 AM, ID: 25479490Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 09:40 AM, ID: 25479567Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 10:56 AM, ID: 25480245Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 01:34 PM, ID: 25481860Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/02/09 02:03 PM, ID: 25482192Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 02:14 PM, ID: 25482285Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/02/09 02:18 PM, ID: 25482319Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/02/09 06:14 PM, ID: 25483319Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/03/09 05:44 AM, ID: 25485097Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/09/09 12:45 AM, ID: 25532978Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625