From owner-freebsd-isp Sun Jul 15 10:54:38 2001 Delivered-To: freebsd-isp@freebsd.org Received: from mail2.mediadesign.nl (md2.mediadesign.nl [212.19.205.67]) by hub.freebsd.org (Postfix) with SMTP id 2DF1637B401 for ; Sun, 15 Jul 2001 10:54:35 -0700 (PDT) (envelope-from alson@mediadesign.nl) Received: (qmail 26262 invoked by uid 1002); 15 Jul 2001 17:54:28 -0000 Date: Sun, 15 Jul 2001 19:54:28 +0200 From: Alson van der Meulen To: freebsd-isp@freebsd.org Subject: Re: Background processes limiting Message-ID: <20010715195428.C10123@md2.mediadesign.nl> Mail-Followup-To: freebsd-isp@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Jul 15, 2001 at 09:16:14AM -0500, James Wyatt wrote: > On Sun, 15 Jul 2001, Kal Torak wrote: > > 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... > > If the file is owned by root, but in a directory owned by joe.user, then > Joe can easily 'rm' the file himself. I liked the idea of using a .logout, man chflags... look at schg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message