Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ivegotan%at%ombomb%dot%org@spam.spam.die.net (Dr. Strangelove)
Subject: Re: logout users over night?
Date: 1998/02/18	[thread overview]
Message-ID: <34ea923b.40135060@news.demon.co.uk> (raw)
In-Reply-To: 6ccepb$igd@herald.rt.bosch.de


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



      parent reply	other threads:[~1998-02-18  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
read-only archive

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