From owner-freebsd-isp Mon Mar 8 0: 4:21 1999 Delivered-To: freebsd-isp@freebsd.org Received: from aniwa.sky (p54-max12.wlg.ihug.co.nz [216.100.145.54]) by hub.freebsd.org (Postfix) with ESMTP id 9362014E78 for ; Mon, 8 Mar 1999 00:03:43 -0800 (PST) (envelope-from andrew@squiz.co.nz) Received: from aniwa.sky (localhost [127.0.0.1]) by aniwa.sky (8.9.1a/8.9.1) with ESMTP id VAA04484; Mon, 8 Mar 1999 21:03:12 +1300 (NZDT) Message-Id: <199903080803.VAA04484@aniwa.sky> X-Mailer: exmh version 2.0.2 2/24/98 To: Holtor Cc: freebsd-isp@FreeBSD.ORG Subject: Re: User Account Due Dates In-reply-to: Your message of "Sun, 07 Mar 1999 14:27:59 -0800." <19990307222759.25507.rocketmail@send101.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 08 Mar 1999 21:03:12 +1300 From: Andrew McNaughton Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hello, I want to setup a system, so when I have > one of my users login via telnet/ssh, in the motd > it prints the date thier account is due and how > much they owe. I was looking into ways using > /etc/profile and then having a file for each > user containing how much they owe and their due date. > I was hopeing there is an easier way to do this. > Please let me know. Search for the word signature in the perlipc manual page. There's example code there which basically creates a tiny daemon process on a file socket which gets read from whenever the file gets accessed. You just substitute said socket for /etc/profile. under low usage conditions, the process will get swapped out if necessary. I'm not sure how well it handles multiple parallel connection attempts. Probably other things would break down first under. Alternatively hack your login programs. You will probably have to do separate modifications for ssh and telnet, and there may be some maintenance as you upgrade those programs, but it shouldn't be too difficult to make the mods. Andrew McNaughton Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message