delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/26/20:33:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 26 Oct 2001 17:35:48 -0700
From: andrew kitchen <andrew AT transmission DOT to>
To: cygwin AT cygwin DOT com
Subject: Who bug??
Message-ID: <20011026173548.A271@transmission.to>
Reply-To: andrew AT askjeeves DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i

Hello, 

I recently reinstalled & reconfigured sshd after managing to misconfigure it
beyond a point I felt like troubleshooting any longer...

After setting it up on a domain, I edited my /etc/passwd and /etc/group files
as suggested at http://tech.erdelynet.com/cygwin-sshd.asp, and after some
permissions twiddlings on the host keys and a reboot I was able to run the
daemon and log in.  phew.

I then instructed a co-worker who I wanted to grant access to log in
remotely.  He was able to do so, but the "who" command has some strange
output for both of us.  I don't mean to accuse sshd of causing this problem,
but it helped expose it.  ;-)

at my bash prompt before _and_ after he is logged in:

akitchen AT KITCHEN ~
$ who
akitchen tty0     Oct 26 16:21
akitchen tty2     Oct 25 10:27

today is Oct 26, and the machine was just rebooted.

from his prompt:

OLangan AT KITCHEN ~
$ who
akitchen tty0     Oct 26 16:21
akitchen tty2     Oct 25 10:27
OLangan AT KITCHEN ~
$ whoami
OLangan
OLangan AT KITCHEN ~
$

after he logs out, from my prompt, the "who" output is the same.  If I close
and re-open the cygwin shell, same "who" output, even though ps-alW|grep bin
only shows one instance of bash.  "Who" seems to always output this for me,
regardless of whether or not the sshd service is running and the number of
shells invoked.

How can this tty2 from yesterday exist if I have rebooted 3 times today
(gotta love windows)?

After opening a new cmd shell with cygwin apps in the PATH (but w/o going
_thru_ cygwin bash at all) I type who and see the same thing.  After I opened
yet another bash shell (for a total of 3 shell windows, 2 bash and one cmd),
then exited from the newest two shells, the output of "who" in the original
bash shell was as expected; one entry for the original tty0.  Very odd, but
seems ok.

What happens when he logs in remotely while I am not logged in at all is also
strange.  Who returns nothing.  For instance:

olangan AT BUDDHA ~
$ ssh OLangan AT kitchen
OLangan AT kitchen's password:
Password:
OLangan AT KITCHEN ~
$ who
OLangan AT KITCHEN ~
$ exit
logout
Connection to kitchen closed.

olangan AT BUDDHA ~
$

Searching the mailing list archives for "who" bugs is difficult since it is a
commonly occurring word; my apologies if this is a known issue.  

I am using an installation that is up-to-date as of yesterday.

Thanks for any insight, 

-Andrew

#  Andrew Kitchen
#  Quality Engineer
#  Jeeves Solutions
#  andrew AT askjeeves DOT com
#  510.985.7545
#  <http://www.jeevessolutions.com>

(apparently I can't post from Microsoft Outlook, even though I am using text
only.  No skin off my back...)

-- 
--------------------------------------------------------------------------------
andrew kitchen
andrew AT transmission DOT to
http://transmission.to
what.
--------------------------------------------------------------------------------


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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