X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4AE88B7F.2040401@cygwin.com> Date: Wed, 28 Oct 2009 14:20:47 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.7, who version 7.0 does not respond with a value References: <360747 DOT 37654 DOT qm AT web30807 DOT mail DOT mud DOT yahoo DOT com> In-Reply-To: <360747.37654.qm@web30807.mail.mud.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 10/28/2009 10:04 AM, Larry W. Virden wrote: > 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! 'cygwin.bat' does not "login" to anything, so you won't see user login data for "sessions logged in" this way. If you want to see actual logged in users, you will need to use 'login' or 'ssh' to really log them in. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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