X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=W5xC8r1jyqCA01ku
	UdTK0YguoQco9eH7iQiDOXCvFxbh+5G0bvxWqciZputaXOx46rbU8Q/U0vZXuiE1
	AOQpC9u7Pjuk/dotWqcL06jp3kkHA/r4OS44zynwIjHKgsKf5VJcvZax8bjeeT1P
	0IQ9md4iDfJ3C4BbBKY6mO9nPLc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=e446xrwNOrBVsiQkOieZl5
	WSJG0=; b=oaRXDXtbcaFaAyK1he6vcQZaiBVOLQJ5/2ZjyF54zzSsenSxgZ/Tz7
	u0kWBfNpNn5POaJ+a1+yBhKwXEIUYzsfM12MsdSTwOyU4+LTJ7IAYmrX+iZFiTGM
	iq2lU71E6SyGSKnOpWzOM0q+ohLaV4iwhOxA+YI8zT/kAjbYkp284=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: out3-smtp.messagingengine.com
Subject: Re: X: Authorization required, but no authorization protocol specified
To: Markus Hoenicka <markus.hoenicka@mhoenicka.de>, cygwin@cygwin.com
References: <67ea3d1202eccadc3fc21e58af6ca4bf@mhoenicka.de> <55C479DA.7000203@dronecode.org.uk> <114144297d60607a3c87f5fd63fb555a@mhoenicka.de>
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Message-ID: <55CB6480.6080905@dronecode.org.uk>
Date: Wed, 12 Aug 2015 16:21:36 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version: 1.0
In-Reply-To: <114144297d60607a3c87f5fd63fb555a@mhoenicka.de>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 12/08/2015 07:22, Markus Hoenicka wrote:
> At 2015-08-07 11:26, Jon TURNEY was heard to say:
>> You might try modifying startxwin to remove the -q from xauth -q to
>> see if that reveals a bit more information.
>
> I finally got round to run this suggested test too. The first time I try
> to start X I get the following output:
>
> $ XAUTHORITY="" startxwin /usr/bin/emacs
> Using authority file /home/<username>/.serverauth.1076
> Writing authority file /home/<username>/.serverauth.1076
> Using authority file /home/<username>/.Xauthority
> Writing authority file /home/<username>/.Xauthority
> xauth:  file /home/<username>/.Xauthority does not exist
> xauth:  file /home/<username>/.Xauthority does not exist
> Using authority file /home/<username>/.Xauthority
> Writing authority file /home/<username>/.Xauthority

> Could this be a timing issue while writing to a network drive? Remember
> that we use roaming profiles here.

Yes, I think that the fact it's a network drive is the significant 
difference.

But the failure seems utterly crazy. xauth is used to write a file, and 
then moments later another instance of xauth claims it doesn't exist.

I've no idea if this is a problem with xauth, cygwin or your networked 
file system.  Do you know what kind of device the network share is on?

There was another report of some problems with xauth and network file 
system (see the thread starting at [1]), but the symptoms seem very 
different.  Nevertheless you might like to try with xauth -i to see if 
the behaviour is any different.

Possible workarounds:

You could edit /usr/bin/startxwin to change 'enable_xauth' to 0, or set 
the XAUTHORITY env var to a local path

[1] https://cygwin.com/ml/cygwin/2015-03/msg00398.html

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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

