🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.admin
3 messages
3 total messages Started by goolias Wed, 06 Dec 2000 05:55
Access hours question.
#4430
Author: goolias
Date: Wed, 06 Dec 2000 05:55
14 lines
1406 bytes
I have probs like this:
In one of the domains, I have to limit the users
access time after working hours, I have to manually inform and either kill
them.
How do I set this work in some configuration so that it kick him out after
exceed the time or forbid
him from logging in  ?
Seem like there's not built in utility like in NT4.
I am running RedHat 6.2, with 25 users in that domain.

Thanks.

Rgds,
Terng
Re: Access hours question.
#4431
Author: Frank
Date: Wed, 06 Dec 2000 00:00
16 lines
1328 bytes
Hi,

2 things come in my mind.
1. You can do some shell scripting in /etc/profile, /etc/login.... to check
login ID and time & kick the user out during login in after business hours.
This will not help against users which are already logged in.
2. create a script to kill all login sessions and run it i.e
0,5,10,15,20,25,30,35,40,45,50,55    20-23    *    *    *
/<somepath</<myscript>
via cron. This gives user a maximum of 5 minut�s to work.
Depends on your requirements/budget what is the better solution. May be you
will use a combination.

Hope this helps.

Frank
Re: Access hours question.
#4432
Author: grocb1
Date: Wed, 06 Dec 2000 00:00
39 lines
1840 bytes
Yup
like frank just said, write a script that locks logins at a certain
time, and sends a mesg to everyone logged in that in 5 minutes their
processes will be killed.  then add a couple lines to kill all the
logins associated with those IP's



In article <D2xX5.78$Jt4.2871@news.tli.de>,
  "Frank" <frank.brauer@talknet.N_O__S_P_A_M.de> wrote:
> Hi,
>
> 2 things come in my mind.
> 1. You can do some shell scripting in /etc/profile, /etc/login.... to
check
> login ID and time & kick the user out during login in after business
hours.
> This will not help against users which are already logged in.
> 2. create a script to kill all login sessions and run it i.e
> 0,5,10,15,20,25,30,35,40,45,50,55    20-23    *    *    *
> /<somepath</<myscript>
> via cron. This gives user a maximum of 5 minut�s to work.
> Depends on your requirements/budget what is the better solution. May
be you
> will use a combination.
>
> Hope this helps.
>
> Frank
>
>

--
Brad Grocholski
Technology Systems Engineering


Sent via Deja.com http://www.deja.com/
Before you buy.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads