delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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=cBRT0u8yawbPenpdpY/SNK9025Z6puHwkIZmtM8fs8b | |
YI/FKjbicB70dn82q795jZbWuKvZhmY2pZfh38+4yD3YwQYTRz7vB9jHJGiVANG4 | |
j36xdjMT2pl0aOwlMF09zr5ubMNMey5VL21N97hVjSye+1rdQTPNz+2h884ehPHg | |
= | |
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=M8JA2ApYiPU7S6cg7PGzXoHjMV4=; b=rmkJwq9VMfOEUWh8j | |
N+BBuxwpTjwE8HXGSjlN8qfm6N5U3Z1cNmifwmkVvwiAMhSG8PzmGBaOg89HMFdv | |
7yAEKGO+bgNBE63RVWfngKb46fqYsMW6aA1IikWFBa+cV6Vcg5vmsGzOI1QnUuKq | |
oWGC8XOkrFVfNeCrg6ff6j07i0= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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: | <551AE238.3090106@intersystems.com> |
Date: | Tue, 31 Mar 2015 14:06:48 -0400 |
From: | Len Giambrone <Leonard DOT Giambrone AT intersystems DOT 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 AT cygwin DOT com> |
Subject: | Re: cygrunsrv no longer allows domain user |
References: | <551990DB DOT 1030703 AT intersystems DOT com> <20150331100453 DOT GD32403 AT calimero DOT vinschen DOT de> <551AE0AE DOT 5030701 AT intersystems DOT com> |
In-Reply-To: | <551AE0AE.5030701@intersystems.com> |
X-IsSubscribed: | yes |
On 03/31/2015 02:00 PM, Len Giambrone wrote: > > 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? > Never mind, I answered my own question: build AT wx64lg ~ $ cygrunsrv -I myservice -u build -p /cygdrive/c/Cygwin/bin/perl.exe Enter password of user `ISCINTERNAL\build': Reenter, please: Sorry, passwords do not match. Enter password of user `ISCINTERNAL\build': Reenter, please: build AT wx64lg ~ $ cygrunsrv -R myservice build AT wx64lg ~ $ cygrunsrv -I myservice -u WX64LG+build -p /cygdrive/c/Cygwin/bin/perl.exe Enter password of user `WX64LG\build': Reenter, please: >> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |