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

 

On Mon, 6 Nov 2006, Tom Potts wrote:

> My guess is that, if your already logged in, then swapping passwd files will 
> NOT log out the user so they can carry on playing....

Indeed you guess right.

> A cron script that looks for the users and logs them out sounds familiar tho..

I think I did it by using who, ps and kill.  There are lots of possible
variants on that idea.  I didn't have X or kde or gnome to think about.

-- 
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