From owner-freebsd-questions Thu Sep 24 13:05:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02324 for freebsd-questions-outgoing; Thu, 24 Sep 1998 13:05:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA02306 for ; Thu, 24 Sep 1998 13:05:28 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id QAA26164; Thu, 24 Sep 1998 16:04:06 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id QAA24891; Thu, 24 Sep 1998 16:04:07 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id QAA05573; Thu, 24 Sep 1998 16:04:06 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Thu, 24 Sep 1998 16:04:06 -0400 (EDT) From: BEAUPRE Antoine To: David Wolfskill cc: dervish@ikhala.tcimet.net, freebsd-questions@FreeBSD.ORG Subject: Re: Using a screensavver under xdm? In-Reply-To: <199809231602.JAA05294@pau-amma.whistle.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a few precisions to add. I remarked in the xautolock man page the "noclose" switch which disables the normal xautolock behaviour, which is to lock the stderr stdout of the locker. After using this, I finally got the message from xlock: xlock, could not grab keyboard! (1) Al right. Now I know what's wrong. But I can't fix it!! Why do xlock want to lock the keyboard, even thought I specified the -nolock option??? I'm gonna make it!!! On Wed, 23 Sep 1998, David Wolfskill wrote: > >Date: Tue, 22 Sep 1998 18:47:10 -0400 (EDT) > >From: BEAUPRE Antoine > > >more Xsetup_0: > >#!/bin/sh > ># $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $ > >#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed > >-exitOnFail > >#xclock -digital -update 1 & > >xhost +localhost > >/usr/X11R6/bin/xautolock -resetsaver -time 1 -locker 'xlock -nolock' & > >/usr/X11R6/bin/xclock -update 1 -geometry -0-0 & > > >And still, after one minute, the screen goes blank for a second, and goes > >back to the prompt without running the screensaver. > > >Any one else wanna try? :) > > As I pointed out (once you mentioned that you're wanting to do this > without someone being logged in), what you're trying to do is at > cross-purposes to the function of xlock. > > Hmmm... as a way to determine precisely why xlock is terminating, you > might try invoking it via ktrace.... > > I suspect that your best bet is to take the xlock sources and either > make a new program that does what you want, or figure out a way to hack > in an option to do that. Once you've done that, getting xautolock to > invoke the program in question should be straightforward. > > Of course, this means that you will need to rather carefully define what > you want the behavior to be in the environment in question. > > >On Tue, 22 Sep 1998, bush doctor wrote: > > >> you may need to change xautolock to be SUID root. > > Please don't do that unless you understand what you're doing and what > its effects may be. In particular: > > * xautolock shouldn't need to run setuid root: its job is to pay > attention to keyboard/mouse/timer events, and if the conditions seem > right, fork a child process (generally, xlock). > > xlock requires effective uid root, because it need to check for a > (valid) password. > > * Writing setuid root programs properly is non-trivial. Assuming that > some program that has no need to be run setuid root has had the same > level of design review appropriate to a setuid root program is asking > for trouble. > > david > -- > David Wolfskill UNIX System Administrator > dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 > +-----------------------------------+ | Free the world from businessmen | | Free yourself from your money | +-----------------------------------+ Free the web. Spidey visit: http://www.JSP.UMontreal.CA/~beaupran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message