Re: cygrunsrv will not start service

8 posts / 0 new
Last post
itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

Can you see something strange in the installation log (Click details button during installation) ?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
cygrunsrv will not start service

Hi
I am trying to run under windows 2000 and when allempting to start the copSSHD service I get the error:-

cygrunsrv: Error starting a service: StartService: Win32 error 193:
%1 is not a valid Win32 application.

Any ideas?

thanks

John

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

There are 2 errors that I can see:-
setting permissions on C:\Program Files\copssh (run setperms.cmd)
SeTakeOwnershipPrivilege : Access is denied.

and:-

Start sshd servce
/usr/bin/cygrunsrv: Error starting a service: StartService: Win32 error 193:
%1 is not a valid Win32 application.

every thing else looks okay

Looking at the properties of the copssh directory
Administrators have full control
SvcCOPSSH has full control
users have read & execute, list folder contents and read permission

Thanks for your help

john

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

Try to run setperms.cmd again.

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

Thanks for your reply.
subinacl reports:-

SeTakeOwnershipPrivilege: Access is denied.

and

net localgroup %LISTACC_ADMGROUP% SvcCOPSSH /add
System error 1378 has occurred.
The specified account name is already a member of the local group.

thanks again

John

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

It seems that group Administrators does not have take ownership rights on the installation directory. I don't know why that happens. You can try to give ownership manually.

btw, what produces program listacc on your machine ?

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

listacc produces
SET LISTACC_ADMGROUP=Administrators
SET LISTACC_USRGROUP=Users

The copssh directory and all its sub directoris are owned by Administrators

running

subinacl /subdirectories "C:\Program Files\copssh\*" /setowner=Adminitrators

produces
SeTakeOwnershipPrivilege : Access is denied.

WARNING :Unable to set SeTakeOwnerShipPrivilege privilege. This provolege may be required.
LookupAccountName : setowner 1332 No mapping between account names and security IDs was done.

Current object C:\Program Files\copssh\* will not be processed

thanks again

John

itefix
Offline
Last seen: 1 week 6 days ago
Joined: 01.05.2008 - 21:33
Re: cygrunsrv will not start service

Hi,
I have fixed it by moving the install directory to C:\copssh

I still have the SeTakeOwnershipPrivilege errors in the install log, but the sshd serive is now running and I can connect to it.

Thanks for your help

John

Topic locked

Release announcements