From owner-freebsd-questions@FreeBSD.ORG Fri Nov 5 19:21:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59FF316A4CE for ; Fri, 5 Nov 2004 19:21:50 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id D59D443D46 for ; Fri, 5 Nov 2004 19:21:49 +0000 (GMT) (envelope-from e.schuele@computer.org) Received: from [208.206.151.59] (host59.gtisd.com[208.206.151.59]) by comcast.net (sccrmhc12) with ESMTP id <20041105192148012008unmfe> (Authid: e.schuele); Fri, 5 Nov 2004 19:21:49 +0000 Message-ID: <418BD21C.9090303@computer.org> Date: Fri, 05 Nov 2004 13:18:52 -0600 From: Eric Schuele User-Agent: Mozilla Thunderbird 0.7.3 (X11/20041016) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <41888720.7090301@computer.org> In-Reply-To: <41888720.7090301@computer.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: X11 security issues??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2004 19:21:50 -0000 Thought the list might benefit... Brian Bobowski wrote: > Eric Schuele wrote: > >> When I have X/Fluxbox up and running, I can press Ctrl+Alt+ >> and get to any other ttyv. This is annoying to begin with but since >> they prompt for pwds... not catastrophic. However, F1 takes you to the >> ttyv I'm logged in to and this gives you the opportunity to Ctrl-C my X >> session... leaving you standing in my shell! >> >> ... >> >> Have I done something wrong? >> How can I prevent this. It would be nice to be able to walk away from >> my desk and not worry about people using my machine. > > > > I'm not personally familiar with Fluxbox, but I do know that some window managers or environments - for instance, KDE - have the option to intercept the CTRL-ALT-Fn keypresses. That's one way to do it - from within your WM. > > The other way is to add these lines to your ServerFlags section of /etc/XF86Config : > > Option "DontVTSwitch" true > Option "DontZap" true Excellent... Exactly what I needed! However, for what it's worth... I'm using xorg, and the syntax that worked for me was without the boolean values. Section "ServerFlags" Option "DontVTSwitch" Option "DontZap" EndSection Thanks for the help. > > The first prevents the behaviour that you specifically mentioned; the second prevents the CTRL-ALT-Backspace shortcut from killing the X server. > > If this section doesn't exist, then put: > > Section "ServerFlags" > Option "DontVTSwitch" true > Option "DontZap" true > EndSection > > ...and that should achieve the desired results. > > HTH, > > -BB > -- Regards, Eric