Permission to kill a process

I'm on AIX. I have triggered an infinite loop process (to keep looking for input file availability for further process). At present only I can kill the process.

In case my colleague wants to kill the process for any reason, how do I provide permission to others to kill the process?

Currently it does not permit killing someone else's process.

Its not that easy ( doing something simple...), normally you would lauch that sort of stuff using a share account that is not personnel, local to that box that the ones who can use it have the password and so can do a su <oper-UID> and e.g. kill, restart etc...

1 Like

Make a logic inside your script if a certain user touches a file in $SOMEDIR/stop.file the process you started will stop looping and exit gracefully.

This way you can avoid sudo and privilege escalations.

1 Like

This may open other holes if not done carefully however (who is allowed to create files there?)

1 Like