* cygrunsrv no longer allows domain user @ 2015-03-30 18:20 Len Giambrone 2015-03-31 10:15 ` Corinna Vinschen 0 siblings, 1 reply; 4+ messages in thread From: Len Giambrone @ 2015-03-30 18:20 UTC (permalink / raw) To: cygwin 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? -- -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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cygrunsrv no longer allows domain user 2015-03-30 18:20 cygrunsrv no longer allows domain user Len Giambrone @ 2015-03-31 10:15 ` Corinna Vinschen 2015-03-31 18:06 ` Len Giambrone 0 siblings, 1 reply; 4+ messages in thread From: Corinna Vinschen @ 2015-03-31 10:15 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1526 bytes --] 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. 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 -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat [-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cygrunsrv no longer allows domain user 2015-03-31 10:15 ` Corinna Vinschen @ 2015-03-31 18:06 ` Len Giambrone 2015-03-31 18:08 ` Len Giambrone 0 siblings, 1 reply; 4+ messages in thread From: Len Giambrone @ 2015-03-31 18:06 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cygrunsrv no longer allows domain user 2015-03-31 18:06 ` Len Giambrone @ 2015-03-31 18:08 ` Len Giambrone 0 siblings, 0 replies; 4+ messages in thread From: Len Giambrone @ 2015-03-31 18:08 UTC (permalink / raw) To: cygwin 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-31 18:06 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-03-30 18:20 cygrunsrv no longer allows domain user Len Giambrone 2015-03-31 10:15 ` Corinna Vinschen 2015-03-31 18:06 ` Len Giambrone 2015-03-31 18:08 ` Len Giambrone
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).