*BSD News Article 92710


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news-xfer.netaxs.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ais.net!uunet!in1.uu.net!199.232.240.7!kayrad.ziplink.net!rtfm.ziplink.net!mi
From: mi@rtfm.ziplink.net (Mikhail Teterin)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Killing user processes at logout time
Date: 2 Apr 1997 20:38:57 GMT
Organization: Aldan at Newton Upper Falls
Lines: 20
Message-ID: <5hug51$okb$9@kayrad.ziplink.net>
References: <01bc3e25$4b84fcd0$214f96cd@reality>
Reply-To: mi@ALDAN.ziplink.net..remove-after-`net'
NNTP-Posting-Host: rtfm.ziplink.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38381

Honorable Kurt Schafer
      wrote on 31 Mar (in article <01bc3e25$4b84fcd0$214f96cd@reality>):
=Our shell machine is seeing alot of abuse by people who like to leave
=processes backgrounded before logging out.  (IRC bot type stuff mostly)
=
=How can I patch things up so that when they terminate their interactive
=process, all their background tasks that may be running get cleaned up too
=?

	ps -U <user_name>

May be a good starting point... You can either check every so often
for the processes, which belong to users not logged-in (with certain
users/processes exempted) or put the process slaying into the system's
logout files (like /etc/csh.logout, other shells should have this sort
of files too).

	-mi
-- 
	"Windows for dummies"