Am Mi, den 29.09.2004 schrieb PFJ um 10:18: > I'm trying to write a cron job which logs users out at (say) 10pm and > then locks all logins via the normal X login service until 3pm the next > day. > > It's not a problem logging people out (just restart X), but I don't know > what services I need to kill to stop users logging in via the normal > gnome login. I don't want to stop all logins as I still need to update > the box remotely (using ssh). > Paul Maybe switch into runlevel 3 by invoking "init 3". And later, when users shall see again the gdm login screen, run "init 5". Of course this does not stop anyone to login in a console or remotely. Take care the SSHD is running in runlevel 3 (chkconfig --list sshd). Alexander -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13 Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp Serendipity 14:25:17 up 8 days, 16:29, load average: 0.15, 0.54, 0.54
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil