From owner-freebsd-stable Sat Sep 21 1:53:23 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EC3E37B401 for ; Sat, 21 Sep 2002 01:53:22 -0700 (PDT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9E1C43E6A for ; Sat, 21 Sep 2002 01:53:21 -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 g8L8r3GD001748; Sat, 21 Sep 2002 20:53:03 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.6/8.12.6/Submit) id g8L8r2ld001747; Sat, 21 Sep 2002 20:53:02 +1200 (NZST) Date: Sat, 21 Sep 2002 20:53:02 +1200 From: Jonathan Chen To: David Syphers Cc: "Kevin D. Kinsey, DaleCo, S.P." , freebsd-stable@FreeBSD.ORG Subject: Re: Weird uptime(1) output Message-ID: <20020921085302.GA1671@grimoire.chen.org.nz> References: <20020921030553.GA656@grimoire.chen.org.nz> <005c01c2612f$8133d490$fa00a8c0@DaleCoportable> <200209210127.35324.dsyphers@uchicago.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209210127.35324.dsyphers@uchicago.edu> User-Agent: Mutt/1.4i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Sep 21, 2002 at 01:27:35AM -0500, David Syphers wrote: [...] > > uptime > uptime: /dev/:0: No such file or directory > 1:23AM up 6 mins, 0 users, load averages: 0.00, 0.01, 0.00 > > As long as I've had this system, since 4.5-RC1, I've gotten this when I logged > into KDE as a user, su'd root in an xterm, and ran uptime. I didn't get it as > a normal user, but now I do. I don't know when that changed. Thanks for the tip! I've tracked this down to the use of "kdm". If someone logs in using "kdm", it makes an entry in /var/run/utmp with the ttys entry of ":0". w(1) and uptime(1) examines this and since there is no "/dev/:0", the complaint comes up. While I like the fact that "kdm" makes a log entry (ie I like to know who's logged in graphically), it's usage is not really compatible with FreeBSD's uptime/w. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message