Xref: utzoo alt.bbs:2998 comp.unix.sysv386:557 Path: utzoo!utgpu!cs.utexas.edu!samsung!uunet!bu.edu!husc6!encore!epeterso From: epeterso@encore.com (Eric Peterson) Newsgroups: alt.bbs,comp.unix.sysv386 Subject: Re: public access unix accounting & admin Message-ID: Date: 21 Sep 90 14:29:00 GMT References: <2484@sud509.ed.ray.com> <1990Sep20.154038.28980@naitc.naitc.com> Reply-To: epeterson@encore.com Organization: Encore Computer Corporation, Diagnostic Development Lines: 21 X-News-Reader: NN 6.4.9 karl@naitc.naitc.com (Karl Denninger) writes: | I have a program called "subscript" which does this. It uses a file in | /etc, called "subscript", and a program called "validate" which is called | during the user's .profile. This works for bourne and korn shells. | | It does not, however, work for csh. To fix this, I hacked the program, and | made it smarter. I saw a .login/.profile of a user at FSU which was smart enough to do all sorts of things based upon the machine, operating system, and shell it was running under. Basically what it did was run the entire .login or .profile through /lib/cpp each time he logged in, with system-dependent code #ifdef'ed in and out. It took quite a while to log in at times, particularly on a slow system, but it worked ... Eric -- Eric Peterson <> epeterson@encore.com <> uunet!gould!epeterson Encore Computer Corp. * Ft. Lauderdale, Florida * (305) 587-2900 x5208 Real Time: Here and now, as opposed to Fake Time, which is there and then.