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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=Z4etCQYMYakaKOIYfpmSEwIHu/Hr1uH1JsQ+tpY972H
	bEx/n9a6uSgc3EK2AAKZUX1IIUBFsIRn1jnRPBeLVq69Uui/sJ09x/R6bjwFAK1K
	Z5fqzIIIJGJp/XHUNAoXHMmFn+jx5ZWkn6IW1io+IV39z+MtWpsxsobvbTLQ1O+Y
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=l+NYGj3/lCDH60xjkMjYd6RevwA=; b=K+/2ExvgTgG+2KMnA
	ATV/Q+Ujj+ifTiJaMlpUIQsTb5tqQNtzSaGPVfQgIp2RrTBXYHTIfu4KPfMd0K5a
	LVLOaIhYyKbcHbO0kNZlOaKRvGzIYPQ0YmF43KTf+T2UKjWSJewzsSzbnFAeQ9/V
	FHQjj/Dk7Y+LU+YxlVP62NHku8=
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=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: mail2.intersystems.com
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Message-ID: <551AE0AE.5030701@intersystems.com>
Date: Tue, 31 Mar 2015 14:00:14 -0400
From: Len Giambrone <Leonard.Giambrone@intersystems.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: <cygwin@cygwin.com>
Subject: Re: cygrunsrv no longer allows domain user
References: <551990DB.1030703@intersystems.com> <20150331100453.GD32403@calimero.vinschen.de>
In-Reply-To: <20150331100453.GD32403@calimero.vinschen.de>
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes


On 03/31/2015 06:04 AM, Corinna Vinschen wrote:
> On Mar 30 14:07, Len Giambrone wrote:
>> This used to work (before Corinna's db work):
>>
>> $ cygrunsrv -I myservice -d 'myservice' -u 'ISCINTERNAL\build' -w donotuseme
>> -p /cygdrive/f/tut/install.sh
>> cygrunsrv: Error installing a service: CreateService:  Win32 error 1057:
>> The account name is invalid or does not exist, or the password is invalid
>> for the account name specified.
>>
>> Using + doesn't help either:
>>
>> $ cygrunsrv -I myservice -d 'myservice' -u 'ISCINTERNAL+build' -w donotuseme
>> -p /cygdrive/f/tut/install.sh
>> cygrunsrv: Error installing a service: CreateService:  Win32 error 1057:
>> The account name is invalid or does not exist, or the password is invalid
>> for the account name specified.
>>
>> Is there an incantation that will work?
> Uhm, not with Cygwin 1.7.35, unless your domain is the primary domain of
> your machine, in which case you just omit the leading domain:
>
>    cygrunsrv [...] -u 'build'
>
> This is a bug in Cygwin.  Cygrunsrv calls getpwnam("ISCINTERNAL\\build")
> and the underlying code fails to recognize this as invalid Cygwin user
> name.  Instead, it constructs a user entry for a user
> ISCINTERNAL+ISCINTERNAL\build and carries on.

Ok, so reading your patch, you just don't allow fully qualified 
usernames and return an error.  What if I have two users foo, one local 
to the machine, and one that is in the domain the machine is a member of?
How do I make the distinction?  Right now -u foo (by empirical evidence) 
translates to DOMAIN\foo; how to I specify LOCALMACHINE\foo?

> I fixed that in the repo and uploaded new developer snapshots 2015-03-31
> with this patch to https://cygwin.com/snapshots/.  Please give them a try.
>
>
> Thanks,
> Corinna
>

-- 
-Len

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

