On Wed, Aug 06, 2003 at 05:04:30PM +0300, Beni Cherniavsky wrote:
> Yedidyah Bar-David wrote on 2003-08-06:
> 
> > On Wed, Aug 06, 2003 at 12:33:54PM +0300, Kfir Lavi wrote:
> > > Hi,
> > > How can i lock the computer and don't get out from programs that are open?
> > > Also when i do apm -suspend?
> > > I want all the ttys and X to be passprotected.
> >
> > I never played with apm.
> > set "DontZap" to true (read 'man XF86Config'), disable SysRq
> > (with 'echo "0" > /proc/sys/kernel/sysrq').
> > Then run your favourite X screen locker (common ones are xscreensaver
> > and xlockmore).
> >
> But X lockers still allow to switch VTs.  There is `vlock`, which in
> the ``vlock -a`` mode disable console switching (just tried).  But it
> doesn't work from X (locks only the current xterm, can still switch
> consoles).  So you need to switch to some VT, login and run ``vlock
> -a``.  Oh, and you need to have it installed.
> 
> ALternatively, you can completely disable VT switching in XF86Config
> but that's ugly.

Of course :-) I thought DontZap does that, but it only disables
Ctrl-Alt-Backspace. The option is "DontVTSwitch".

The reason I wrote about sysrq is because it has Alt-SysRq-k, which
kills all the processes on the current vc (including either vlock or
X+its locker).

About ugliness: I agree, but logging in on another vc just to lock
the machine is more ugly, IMO, and anyway, does not give you something
the other way did not give you. If you want other people to be able to
use the machine's console while you are away, you can't lock it anyway
(with either vlock -a or "DontVTSwitch").
Maybe some future version of XFree will allow that to be configured at
runtime, and let the locker do that (instead of the config file).

The reason I keep writing vc is to differentiate it from a real VT.
console(4) also says 'virtual console'.
-- 
Didi

> 
> -- 
> Beni Cherniavsky <[EMAIL PROTECTED]>

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to