Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <000a01c56b27$3f32d640$7aa279d1@oomph>
From: "Vadym Voznyuk" <pirks@telus.net>
To: <cygwin@cygwin.com>
References:  <000b01c5683f$1138ca50$7aa279d1@oomph>  <zbka4n95ztcx.hcdbinxzexl0.dlg@40tude.net>
Subject: Re: Running cygwin service via cygrunsrv under account without password in Win XP Pro - impossible?
Date: Mon, 6 Jun 2005 23:07:55 -0700
MIME-Version: 1.0
Content-Type: text/plain; 	format=flowed; 	charset="iso-8859-1"; 	reply-type=original
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

----- Original Message ----- 
From: "Andrew Schulman" <andrex@alumni.utexas.net>
To: <cygwin@cygwin.com>
Sent: Friday, June 03, 2005 8:31 AM
Subject: Re: Running cygwin service via cygrunsrv under account without
password in Win XP Pro - impossible?

>> -w, --passwd <password>
>>   Optional password for user. Only needed if a user is given. If a
>> user has an empty password, enter `-w ' with no <password>.
>> cygrunsrv -I svc_name -p /usr/bin/svc.exe -u foo -w ""
>
> Isn't '-w ""' different from just '-w'?  In other words,
> cygrunsrv.README is telling you to use no password, while you're giving
> it an empty password, which is different.  I dunno, but it's worth a
> try.

No, that is correct syntax actually!

Did you read the message from the Corinna himself? He solved it!
There is a special local security policy setting in XP and 2K3, once I set 
it properly - everything works beautifully.

> Another option is to run the service as user SYSTEM.  This is what I do,
> and I've never had any trouble.  But of course you're right to try to
> run it under a lower-privilege account.

Corinna rocks! No need to invent crazy workarounds like trying to put 
/home/my_user_name in /etc/passwd for the SYSTEM account to force ssh to 
pick up my RSA key.
Just ask Corinna and the world is your oyster ;) 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

