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 Message-ID: <3BD84970.8080502@cportcorp.com> Date: Thu, 25 Oct 2001 13:18:40 -0400 From: Peter Buckley User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: "Lassi A. Tuura" CC: cygwin AT cygwin DOT com Subject: Re: How to debug inetd/sshd services? References: <3BCEAD9C DOT B2A273B1 AT cern DOT ch> <3BCF1A01 DOT 34CB395F AT cportcorp DOT com> <3BD847F3 DOT 106B0C9E AT cern DOT ch> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Did you try sshd -d -d -d? Or is it -v -v -v? These multiple debug/verbosity flags give it further levels of output. Search the mail archives for posts about the SYSTEM account, especially from Corinna Vinschen. She details the specific limitations of the SYSTEM account running a service like sshd or inetd. Where it works from the command line, but not as a service, it sounds like the SYSTEM account could be involved in your problem. HTH, Peter Lassi A. Tuura wrote: > This is to follow up on my problem where I have cygdrive prefix > set to `/', both system and user setting, but $PATH and other > env vars are initialised to /cygdrive/x. This happens only when > the process (inetd or sshd) is started as a service under the > system account. Under the same remote session mount reports > the expected values (`/'). The extra /cygdrive prefixes causes > problems with the $PATH: cygwin thinks those /cygdrive//... > directories don't exist (which is consistent with mount output). > > After some further testing: > - sshd -d didn't seem to print any useful information > - sshd started from cygwin/bash command line on my own > account does not have this problem > - I managed to get the sshd-as-service to run under strace; > beginning of the output is attached below. > >>From the strace output, cygwin seems to happily use the /cygdrive > prefix instead of `/'. I am not sure how I can debug this further > -- experts, please help. I am happy to debug this under gdb if > some kind soul can explain to me how do I do that in the service > conditions... > > Is there a way to get more output from strace? Any other debugging > ideas? I can provide the strace outputs both with and without > /cygdrive prefix set if someone thinks that will be useful. > > Registry data: > $ regtool -v list '\machine\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2' > /\ (Cygwin) > /usr/bin\ (Cygwin) > /usr/lib\ (Cygwin) > cygdrive prefix = "/" > cygdrive flags = 0x00000028 (40) > $ regtool -v list '\user\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2' > cygdrive prefix = "/" > cygdrive flags = 0x00000020 (32) > > //lat > -- -- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK] -- -- 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/