Date: Wed, 9 Oct 2002 08:10:49 +1300 From: Jonathan Chen <jonc@chen.org.nz> To: David Kelly <dkelly@hiwaay.net> Cc: FreeBSD-Questions@FreeBSD.ORG Subject: Re: w: /dev/:0: No such file or directory Message-ID: <20021008191049.GC1768@grimoire.chen.org.nz> In-Reply-To: <20021008153004.GA56609@grumpy.dyndns.org> References: <20021008153004.GA56609@grumpy.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jonc@chen.org.nz>
----------------------------------------------------------------------
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021008191049.GC1768>
