delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/14/17:58:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
MIME-Version: 1.0
Subject: RE: Problem running cygrunsrv with non SYSTEM accounts
Date: Fri, 14 Jan 2005 16:57:50 -0600
Message-ID: <B1FAB0BF7755FC4597FBCFBDE66EA4A6011F5C52@DCEVS1.tekelec.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Aitken, Sean" <Sean DOT Aitken AT tekelec DOT com>
To: "Pierre A. Humblet" <pierre DOT humblet AT ieee DOT org>
Cc: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 14 Jan 2005 22:57:51.0619 (UTC) FILETIME=[79A13530:01C4FA8C]
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0EMw72f005826

Hi Pierre,

> Have you tried running a really simple service under account
> sshd_server, e.g. ones that simply executes /bin/env or 
> /bin/sleep 60 ?

I created a test service, using 'sshd_server' as the runner. The program
is /bin/env.

It did the same thing.
- No log file was created
- The status is:
$ cygrunsrv -Q test
Service test exists
Type                : Own Process
Current State       : Start Pending
Controls Accepted   : Accept Stop

> Also does starting with "net start" give any useful hint?

When I try to run it with "NET START ..." I get:
$ net start test
The test service is starting........
The test service could not be started.

More help is available by typing NET HELPMSG 3523.

When I switch it to SYSTEM:
"
saitken AT DCESAP08 /var/log
$ cygrunsrv -S test
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
1062:
The service has not been started.


saitken AT DCESAP08 /var/log
$ ls
setup.log.full  test.log

saitken AT DCESAP08 /var/log
$ ls -al
total 100
drwxrwx---+ 2 saitken Users               0 Jan 14 15:56 .
drwxrwx---+ 7 saitken Users               0 Jan 11 15:22 ..
-rwxr-x---+ 1 saitken Users          100878 Jan 13 17:03 setup.log.full
-rw-r--r--  1 SYSTEM  Administrators    864 Jan 14 15:56 test.log
"

Of course, it says it can't be started because 'env' exited immedately.
But, the logfile was created. :0)

I think this can be narrowed down into a general problem running
'cygrunsrv' on Windows Server 2003 under certain conditions. Since the
machine was setup by someone else, I'm gonna try and get more info
regarding security and policy configurations.

Cheers!
-Sean



--
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019