delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/28/09:05:03

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <360747.37654.qm@web30807.mail.mud.yahoo.com>
Date: Wed, 28 Oct 2009 07:04:51 -0700 (PDT)
From: "Larry W. Virden" <lvirden AT yahoo DOT com>
Subject: Cygwin 1.7, who version 7.0 does not respond with a value
To: Cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

when I type the who command within a Cygwin window, only an empty line is returned. 

The man page states that who prints info about users who are logged in.
What I have found so far is that 
-H returns headers
-q returns # users=0

while who with the -a, -b, -d, -l, --lookup, -m, -p, -r, -s, -t, -T, -w, -u options returns a blank line.

I checked /var/log/wtmp and /var/run/utmp and they exist, with permissions of 770 and a size of 0.

I grepped through /usr/share and found references to utmp in uptime and w. Right now, uptime is reporting the correct time, days, but says there are 0 users. uptime -V says procps version 3.2.7.
w shows the update information, along with headers, but no data.
I tried to do a man on utmp(5), but our installation doesn't have that installed.

It looks, to me, as if perhaps we are missing some setup that results in entries being written to utmp when a local Cygwin window is opened. I've just not been able to determine what that is yet.

Has anyone on the list encountered and solved this issue yourself? What steps did you take?  Thanks!



      

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019