Operating System - Tru64 Unix
1753770 Members
5128 Online
108799 Solutions
New Discussion юеВ

Deleting a process from a script file

 
selva3k
New Member

Deleting a process from a script file

Hi,
I want to delete a process in script file in unix.
The process is having owner as "root"
But the script execution is having lesser permission.

I got the pid in script file but if i try to kill that pid, it is not deleting.

I think it is due to the permission issue.

Please give me a solution.

Thanks in Advance
5 REPLIES 5
Victor Semaska_3
Esteemed Contributor

Re: Deleting a process from a script file

Hi,

You'd have to use something like sudo to give the user temporary root privilege to delete the process.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Ivan Ferreira
Honored Contributor

Re: Deleting a process from a script file

I agree, you will need somethig like sudo, to allow this. With sudo, you can allow to an user the execution of any command as root. A normal user cannot kill another user's process.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Mark Poeschl_2
Honored Contributor

Re: Deleting a process from a script file

If you prefer not to use a shareware product like sudo, there is also 'dop' which is included with Tru64.
Venkatesh BL
Honored Contributor

Re: Deleting a process from a script file

Ask your system administrator (root) to kill that process. As mentioned earlier, one user cannot kill another users' processes.
selva3k
New Member

Re: Deleting a process from a script file

Thanks to all.
I solved this problem.

Thanks.