Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 # (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/