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.

the "slay" command can be fun for this...


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