Stopping users logging in via X
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Wed Sep 29 12:27:38 UTC 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040929/b494549b/attachment-0001.sig>
More information about the fedora-list
mailing list