Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pkill from user without root password

250 views
Skip to first unread message

Daniel Brunner

unread,
Aug 31, 1999, 3:00:00 AM8/31/99
to
Hi !

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


Andrei Ivanov

unread,
Aug 31, 1999, 3:00:00 AM8/31/99
to
Daniel Brunner <Daniel....@bger.admin.ch> 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 ?

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

Roland Mainz

unread,
Aug 31, 1999, 3:00:00 AM8/31/99
to

Hi !

----

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


0 new messages