Date: Sun, 15 Jul 2001 15:07:52 +1000 From: Kal Torak <kaltorak@quake.com.au> To: James Wyatt <jwyatt@rwsystems.net> Cc: =?iso-8859-1?Q?Mat=EEss?= Elsbergs <sandstorm@astranet.lv>, Marc Veldman <freebsd@lurkie.xs4all.nl>, freebsd-isp@freebsd.org Subject: Re: Background processes limiting Message-ID: <3B512528.BD0C9C21@quake.com.au> References: <Pine.BSF.4.10.10107141512410.46742-100000@bsdie.rwsystems.net>
next in thread | previous in thread | raw e-mail | index | archive | help
James Wyatt wrote: > > I have seen such things done in .logout scripts, but usually users can > remove the .logout file to prevent the action. One approach might be to > have a script run from cron that finds processes with a PPID of "1" > (parent now init) and owned by a regular login user and kills them. > Another might be to look for regular-user process without an associated > tty device. Hope this helps... - Jy@ Why not just make .logout owned by root? Only give the users group read access... That should work, just have a killall -m . -9 or something like that in there... Then just have your cron job running every so often to clean up anything that might of somehow slipped though the cracks... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B512528.BD0C9C21>
