Can someone tell me how to use the pkill command for killing the
processes of another user but without having to use the root account
directly ?
Thanks a lot in advance
Daniel
e-mail: Daniel....@bger.admin.ch
As with more common pair of 'ps' and 'kill', one can 'pkill' only
his own processes. Only superuser has rights to "kill" processes
of all other users as well.
--
andrei
----
Daniel Brunner wrote:
> Can someone tell me how to use the pkill command for killing the
> processes of another user but without having to use the root account
> directly ?
1. Use "su root"
2. Use "su <name-of-process-owner>"
3. See "sudo"...
4. ((This creates a security leak:))
copy the pkill executable, chown the copy to root and set the suid bit...
5. Ask your administrator to do the job...
6. Shutdown/reboot the machine (on Solaris 7 sparc, the console owner is allowed
to do that - hit the power key in CDE...)
After reboot, the victims (e.g. the user processes) are gone =:-)
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) Roland Mainz C/JAVA programmer
\__\/\/__/ Roland...@informatik.med.uni-giessen.de MPEG specialist
/O /==\ O\ gis...@informatik.med.uni-giessen.de Sun&Unix programmer
(;O/ \/ \O;) TEL +49 (0) 641/99-13193 FAX +49 (0) 641/99-41359