Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!news.kei.com!nntp.et.byu.edu!news.byu.edu!hamblin.math.byu.edu!park.uvsc.edu!usenet From: Terry Lambert <terry@cs.weber.edu> Newsgroups: comp.unix.bsd.bsdi.misc Subject: Re: Script to capture Login time Date: 24 May 1995 21:05:32 GMT Organization: Utah Valley State College, Orem, Utah Lines: 19 Message-ID: <3q072s$8mf@park.uvsc.edu> References: <3pqcon$nfi@usenet.INS.CWRU.Edu> NNTP-Posting-Host: hecate.artisoft.com dh950@cleveland.Freenet.Edu (Kair-Chuan Lim) wrote: ] Does anyone have a login script that will capture the amount of time ] spent per session. I m trying to set up a script that will logout a ] user when his time is up. eg after 1.5 hours of login time. You mean a watchdog program, like "watchdog" for idle time, or do you mean soft session limits (using the source code to "last", most likely, to implement them) to kick sessions above a certain duration, or do you mean a per user per day duration quota (which would require modifying everything that touches the passwd file and the GECOS field usage, as well as login and having a "last" based session duration enforcer, or a sperate file and just login itself, probably "init" and an enforcer program)? Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.