This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygrunsrv no longer allows domain user


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: pgpE7QI1fWjdB.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]