Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* logout users over night?
@ 1998-02-17  5:00 Mario Zimmermann
  1998-02-18  5:00 ` Juergen Schroeder
  1998-02-18  5:00 ` Dr. Strangelove
  0 siblings, 2 replies; 5+ messages in thread
From: Mario Zimmermann @ 1998-02-17  5:00 UTC (permalink / raw)




Hello 

we have a server which shares the disks over nfs to clients.
We use NIS for the user-management.

What can we do, if we want to logout our users after midnight/over the
weekend?
Is there a simple way to check for the users logged in, and kick them 
out. I know rwho, but isn't there an other way?
Do i have to kick out the users directly on the clients, or is there
a way to send a signal from the server to the clients?
To log them out, do i have to scan for all process of a user,
or is there a way like : lougout user_a.

Any ideas are very appreciated.

Thanks in advance.

regards

mario

e-mail:	mario.zimmermann@pcm.bosch.de



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: logout users over night?
  1998-02-17  5:00 logout users over night? Mario Zimmermann
  1998-02-18  5:00 ` Juergen Schroeder
@ 1998-02-18  5:00 ` Dr. Strangelove
  1 sibling, 0 replies; 5+ messages in thread
From: Dr. Strangelove @ 1998-02-18  5:00 UTC (permalink / raw)



On 17 Feb 1998 16:44:27 GMT, Mario Zimmermann
<mzi2sn@sn0967.sn.bosch.de> wrote:

>
>Hello 
>
>we have a server which shares the disks over nfs to clients.
>We use NIS for the user-management.
>
>What can we do, if we want to logout our users after midnight/over the
>weekend?

Write a shell script to kill off their processes and shells. Get cron
to run your script at suitable times.

How about something like:

for pid in `ps -e|grep "\-sh"|grep -v grep|awk '{print $1}'`;do
  kill -9 $pid
done


Dr. Strangelove
Rewrite the address with the obvious bits taken out if you want to mail me.
mailto:ivegotan%at%ombomb%dot%org%with%no%spam%please
http://www.ombomb.org/
"Put your money on 'The Bribes', they always win." - Jello Biafra



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: logout users over night?
  1998-02-17  5:00 logout users over night? Mario Zimmermann
@ 1998-02-18  5:00 ` Juergen Schroeder
  1998-02-18  5:00   ` Scott J. Tringali
  1998-02-18  5:00 ` Dr. Strangelove
  1 sibling, 1 reply; 5+ messages in thread
From: Juergen Schroeder @ 1998-02-18  5:00 UTC (permalink / raw)



Mario Zimmermann <mzi2sn@sn0967.sn.bosch.de> wrote:

: Hello 

: we have a server which shares the disks over nfs to clients.
: We use NIS for the user-management.

: What can we do, if we want to logout our users after midnight/over the
: weekend?
: Is there a simple way to check for the users logged in, and kick them 
: out. I know rwho, but isn't there an other way?
: Do i have to kick out the users directly on the clients, or is there
: a way to send a signal from the server to the clients?
: To log them out, do i have to scan for all process of a user,
: or is there a way like : lougout user_a.

: Any ideas are very appreciated.
 ^^^^^
There is a very simple way. Put a "shutdown -r" in the crontab, this will
log out all users and stop all their processes. 

Its the unix way... 
No scripts neccessary. 

Juergen



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: logout users over night?
  1998-02-18  5:00 ` Juergen Schroeder
@ 1998-02-18  5:00   ` Scott J. Tringali
  1998-02-18  5:00     ` Mark Greene
  0 siblings, 1 reply; 5+ messages in thread
From: Scott J. Tringali @ 1998-02-18  5:00 UTC (permalink / raw)



Juergen Schroeder wrote:
> There is a very simple way. Put a "shutdown -r" in the crontab, this will
> log out all users and stop all their processes.

A less drastic method is to use "idled" to log out idle users according to
a predefined set of rules.  Put this on each of your client machines and
configure the rules accordingly.

-- 
Scott J. Tringali, Software Engineer                    #include </dev/tty>
International Air Traffic Control, Raytheon Electronic Systems
If you want to email me, please do the obvious.  If it isn't, don't bother.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: logout users over night?
  1998-02-18  5:00   ` Scott J. Tringali
@ 1998-02-18  5:00     ` Mark Greene
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Greene @ 1998-02-18  5:00 UTC (permalink / raw)



Scott J. Tringali wrote:
> 
> Juergen Schroeder wrote:
> > There is a very simple way. Put a "shutdown -r" in the crontab, this will
> > log out all users and stop all their processes.
> 
> A less drastic method is to use "idled" to log out idle users according to
> a predefined set of rules.  Put this on each of your client machines and
> configure the rules accordingly.
> 
> --
> Scott J. Tringali, Software Engineer                    #include </dev/tty>
> International Air Traffic Control, Raytheon Electronic Systems
> If you want to email me, please do the obvious.  If it isn't, don't bother.

According to the idled home page (http://www.darkwing.com/idled/), idled
is no longer a "supported" program.  Do you know if anyone has
subsequently provided support for this? 
Thanks.
-- 
Mark Greene        My real address: mailto:greenemj@hlthsrc.com
The above opinions are mine, not my employer's.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-02-18  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-17  5:00 logout users over night? Mario Zimmermann
1998-02-18  5:00 ` Juergen Schroeder
1998-02-18  5:00   ` Scott J. Tringali
1998-02-18  5:00     ` Mark Greene
1998-02-18  5:00 ` Dr. Strangelove

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox