Subject: Re: Command peculiarity
To: iMac <wduke@cogeco.ca>
From: Dave Huang <khym@azeotrope.org>
List: port-mac68k
Date: 10/22/2005 12:32:02
On Sat, Oct 22, 2005 at 01:12:14PM -0400, iMac wrote:
> on 10/22/05 12:25 PM, Dave Huang at khym@azeotrope.org wrote:
> > On Sat, Oct 22, 2005 at 12:04:46PM -0400, iMac wrote:
> >> The following commands do not work on the Quadra 700 running NetBSD 2.0:
> >> users & who.
> > 
> > Exactly how do they not work?
> 
> They don't display anything.  If I type "users" at the prompt and hit
> [Enter], I'm immediately thrust back to the prompt on the next line.   There
> is no message indicating improper usage, nor is there any message stating
> that the command cannot be found.

OK, what do you get if you run the following command:
ls -l /var/run/utmp* /usr/bin/users /usr/bin/who

My system shows:
-r-xr-xr-x  1 root  wheel   9932 Jun 18 06:47 /usr/bin/users
-r-xr-xr-x  1 root  wheel  12145 Jun 18 06:47 /usr/bin/who
-rw-rw-r--  1 root  utmp    1656 Oct 22 12:28 /var/run/utmp
-rw-rw-r--  1 root  utmp    1024 Oct 22 12:28 /var/run/utmpx

It's running NetBSD 3.99.7, so the file sizes and modification times
won't be exactly the same (and NetBSD 2.0 might not have
/var/run/utmpx... I don't remember when that was added), but the
permission and owner/group columns should be the same. It sounds like
the files the system records the currently logged-in users in,
/var/run/utmp (and utmpx if you have it) are empty for some reason.