Subject: Re: Command peculiarity
To: Dave Huang <khym@azeotrope.org>
From: iMac <wduke@cogeco.ca>
List: port-mac68k
Date: 10/22/2005 17:59:34
on 10/22/05 1:32 PM, Dave Huang at khym@azeotrope.org wrote:

> 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.

I entered the command you specified and the permissions on my Quadra are
identical to those on your system.   All of the files show root as owner,
just like on your system.  The executables, users and who, belong to the
wheel group, and the other two files, utmp and utmpx, belong to the utmp
group, just like on your system.

I also typed this command:
cat /var/run/utmp

Response was:
ttyE0root

Typing: cat /var/run/utmpx

Gave this response:
utmpx-1.00
roottyE0ttyE0K

Hmmm, bizarre.   The files don't appear to be empty.   Any other ideas?

Thanks,

William