D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Restricting logon times for normal users

 

> > I assume "logout" is policed by mother?

An "automatic mother" is easy to set up :-)

I guess the first thing is a cron job that logs /out/ user XXX (after a
few minutes' warning) if she is still logged in at closing time.  I
remember setting up such a thing about 1986 (on Berkeley Unix 4.2 or
something like), because I had lots of users who kept forgetting to log
out when they left the office.  It also ticked off the offending user, by
e-mail.  (Shutting down the computer wouldn't do as there were important
overnight jobs on cron.)  The job can be repeated several times during the
night to catch those who log back in.  In my case it had to allow for
people genuinely working late, so it only logged out those who had been
inactive for a while, but I guess you don't want that feature.

Once that works, think how to disable logging in after closing time.  
I think I need to read up pam ; but being old-fashioned I liked the idea
of a cron job that swaps passwd files.  Someone will no doubt tell me how
insecure that is !

Far be it from me to tell other people how to relate to their children but
a simple message on the screen, repeated every few minutes, might in the
present case be as effective as a brutal log-out and perhaps make for a
kinder breakfast-time.

-- 
John Palmer
Preston near Weymouth, Dorset, England
e-mail:  johnp@xxxxxxxxxx (plain text preferred)
website: http://www.palmyra.uklinux.net/



-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html