Date: Mon, 08 Mar 1999 21:03:12 +1300 From: Andrew McNaughton <andrew@squiz.co.nz> To: Holtor <holtor@yahoo.com> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: User Account Due Dates Message-ID: <199903080803.VAA04484@aniwa.sky> In-Reply-To: Your message of "Sun, 07 Mar 1999 14:27:59 -0800." <19990307222759.25507.rocketmail@send101.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903080803.VAA04484>