From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a4f3779700e1095 X-Google-Attributes: gidfee84,public From: Juergen Schroeder Subject: Re: logout users over night? Date: 1998/02/18 Message-ID: <6ce9r2$log$1@surz03.HRZ.Uni-Marburg.DE>#1/1 X-Deja-AN: 326167541 References: <6ccepb$igd@herald.rt.bosch.de> Organization: HRZ Uni Marburg User-Agent: tin/pre-1.4-971106 (UNIX) (OSF1/V3.2 (alpha)) Newsgroups: comp.unix.osf.osf1 Mario Zimmermann 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