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