I have userA and userB who start processes:
userA@server:~$ ./some_command.sh &  30889
I then want userC to be able to manage those processes (suspending, resuming, terminating, and killing):
userC@server:~$ kill 30889 bash: kill: (30889) - Operation not permitted userC@server:~$ sudo kill 30889 userC@server:~$
How can I give permission to userC to do this without relying on sudo access? As a last resort I would grant userC root privilege to do this.
I have complete control over userC. One possibility is changing the user ID to same as userA, but then what about userB?
The context is for an existing web app.