From owner-freebsd-questions Tue Oct 8 12:10:54 2002 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 70A0B37B401 for ; Tue, 8 Oct 2002 12:10:53 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 576A843E77 for ; Tue, 8 Oct 2002 12:10:52 -0700 (PDT) (envelope-from jonc@chen.org.nz) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.6/8.12.6) with ESMTP id g98JAomL001999; Wed, 9 Oct 2002 08:10:50 +1300 (NZDT) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.6/8.12.6/Submit) id g98JAnel001998; Wed, 9 Oct 2002 08:10:49 +1300 (NZDT) Date: Wed, 9 Oct 2002 08:10:49 +1300 From: Jonathan Chen To: David Kelly Cc: FreeBSD-Questions@FreeBSD.ORG Subject: Re: w: /dev/:0: No such file or directory Message-ID: <20021008191049.GC1768@grimoire.chen.org.nz> References: <20021008153004.GA56609@grumpy.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021008153004.GA56609@grumpy.dyndns.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 08, 2002 at 10:30:04AM -0500, David Kelly wrote: [...] > % w > w: /dev/:0: No such file or directory > 10:21AM up 21:43, 1 user, load averages: 0.00, 0.00, 0.01 > USER TTY FROM LOGIN@ IDLE WHAT > dkelly p3 frisket 8:57AM - w This is caused by a disagreement between X11's "sessreg" program and FreeBSD w/uptime. If you're using kdm, you can change this by tweaking sessreg's invocation in /usr/local/share/config/kdm/Xstartup to something like: exec sessreg -a -l console -h $DISPLAY -x /usr/local/share/config/kdm/Xservers -u /var/run/utmp $USER You'll also have to tweak /usr/local/share/config/kdm/Xreset to remove the sessreg utmp entry: exec sessreg -d -l console -h $DISPLAY -x /usr/local/share/config/kdm/Xservers -u /var/run/utmp $USER Alternatively you can remove the sessreg invocation in both files, or perhaps fix w/uptime to not display errors (since Linux & Solaris handles sessreg's utmp entries just fine). Cheers. -- Jonathan Chen ---------------------------------------------------------------------- Jesus saves. Allah forgives. Cthulu thinks you'd make a nice sandwich. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message