Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 18 Jan 2005 10:01:59 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Aitken, Sean" cc: cygwin AT cygwin DOT com Subject: RE: Problem running cygrunsrv with non SYSTEM accounts In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Ugh, top-posting... Also, . Thanks. More below. On Tue, 18 Jan 2005, Aitken, Sean wrote: > It does seem to be a problem with running cygrunsrv under non SYSTEM > accounts then.. I have granted almost all privileges (via. Local > Security Policy) to the sshd_server user. Also, I have tried this with a > domain account added to the local Administrators (and granted > RunAsService) with the same results, so I don't think it has to do with > the 'sshd_server' account. > Also, I have performed: > mkpasswd -l -d > /etc/passwd > mkgroup -l -d > /etc/group > > .. And verified the 'sshd_server' account was listed. > > Also, NT File Monitor turned up no significant 'file not found' or > 'permission denied' errors.. > > Any more ideas? Is there any sure-fire way to debug the cygrunsrv > program in this manner?? Well, cygrunsrv can only do as much as Windows let it. I'd suggest trying to install and run a service as sshd_server using the pure Windows means, and seeing if it succeeds. If it doesn't, debug it at the Windows level. BTW, I don't recall the Windows Event Log being mentioned anywhere in this thread. If I didn't miss it and it really wasn't mentioned, please examine the Windows Event Log (both System and Application) for clues. HTH, Igor > Thanks again! > -Sean > > > -----Original Message----- > > From: cygwin-owner AT XXXXXX DOT XXX On Behalf Of Aitken, Sean > > Sent: Friday, January 14, 2005 5:58 PM > > To: Pierre A. Humblet > > Cc: cygwin AT XXXXXX DOT XXX > > Subject: RE: Problem running cygrunsrv with non SYSTEM accounts > > > > 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 -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/