From owner-freebsd-questions@FreeBSD.ORG Wed Jul 15 01:36:33 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61CE01065674 for ; Wed, 15 Jul 2009 01:36:33 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 1EF7D8FC0C for ; Wed, 15 Jul 2009 01:36:32 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-64-14.dynamic.qsc.de [92.195.64.14]) by mx02.qsc.de (Postfix) with ESMTP id 6CE2724AE8; Wed, 15 Jul 2009 03:36:30 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n6F1aOV0006512; Wed, 15 Jul 2009 03:36:25 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 15 Jul 2009 03:36:24 +0200 From: Polytropon To: Chad Perrin Message-Id: <20090715033624.1bb16f2d.freebsd@edvax.de> In-Reply-To: <20090715003350.GB2838@kokopelli.hydra> References: <4A5CA4F1.6090605@isafeelin.org> <20090714115243.e454e09b.wmoran@potentialtech.com> <200907141403.04748.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090715003524.c070f8f2.freebsd@edvax.de> <20090715003350.GB2838@kokopelli.hydra> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Automatic screen lock when leaving desk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2009 01:36:33 -0000 On Tue, 14 Jul 2009 18:33:50 -0600, Chad Perrin wrote: > On Wed, Jul 15, 2009 at 12:35:24AM +0200, Polytropon wrote: > > > > To make it more complicated, what about wearing some specific USB device > > on your clothes, attached to a chain, and when you leave the computer, > > it will pop out of the USB socket and therefore cause "xlock" to be > > called? :-) > > Does FreeBSD still have the kernel panic when mounted USB storage devices > are detached without unmounting problem? Hmmm... How do other operating systems react if you suddenly remove a direct storage media that is just read from or written to? Do other operating systems go like, "Oh wow, the hard disk just disappeared, so then I will write the data on another hard disk..." :-) As far as I know, there are some tools like DBUS and HAL that make using USB sticks more easy in terms of "automount if plugged in, autoumount when removed", but I have to be honest: I don't use any automount feature (due to security reasons), so in my opinion it's always safe to first umount, then remove. > If so, you could just mount a > USB storage device, and unplug it when you leave the keyboard. Then > your computer would be safe from snooping, because it would kernel panic > every time you walk away! I first thought about that, too, but in my opinion it's not needed to mount whatever you plug in as USB device, maybe a defective MP3 player made from crap, a memory stick or who knows what. The lock / unlock action could be assigned to the simple presence of the device. And: Yes, I know, that's a very stupid idea. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...