cron and logins

Mark D. Stadler mds at mds.sgi.com
Tue Nov 28 10:16:21 AEST 1989


In article <8911242042.aa26144 at SMOKE.BRL.MIL> S090726 at UMRVMA.UMR.EDU ("Bob B. Funchess") writes:
>I want to set up a system on our 4D/20 where certain users can only login
>at certain times, such as non-prime hours.  The only way I can think of to
>do this is to have cron swap /etc/passwd in and out at these times, and
>frankly this frightens me a little :).  Does anyone have such a setup?
>Will you share your secrets?  You can mail me direct at the address below...
>
>
>                             < Bob  S090726 at UMRVMA.UMR.EDU  Funchess >

the last field in the /etc/passwd file is the program to exec upon logging
in.  usually this is /bin/sh, /bin/ksh etc...  you could write your own
program that validates users according to the time and kick off the
appropriate shell from there.  (put your validation program name in the
/etc/passwd file with an argument of what to invoke if restrictions don't
inhibit anything further)  it means you have to write your own validation
program, but you can get exactly what you want without hacking too much.

-- mds	[aka Mark D Stadler  mds at sgi.com  ...!uunet!sgi!mds  (415)335-1327]



More information about the Comp.sys.sgi mailing list