From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20321 invoked by alias); 31 Mar 2015 18:06:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20292 invoked by uid 89); 31 Mar 2015 18:06:50 -0000 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 Received: from mail2.intersystems.com (HELO mail2.intersystems.com) (38.105.105.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 31 Mar 2015 18:06:49 +0000 X-InterSystems: Sent from InterSystems X-InterSystems: Sent from InterSystems Received: from [172.16.100.130] (172.16.63.56) by owa.intersystems.com (172.17.15.51) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 31 Mar 2015 14:06:47 -0400 Message-ID: <551AE238.3090106@intersystems.com> Date: Tue, 31 Mar 2015 18:08:00 -0000 From: Len Giambrone User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Subject: Re: cygrunsrv no longer allows domain user References: <551990DB.1030703@intersystems.com> <20150331100453.GD32403@calimero.vinschen.de> <551AE0AE.5030701@intersystems.com> In-Reply-To: <551AE0AE.5030701@intersystems.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00557.txt.bz2 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@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@wx64lg ~ $ cygrunsrv -R myservice build@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