cygwin sshd service fail to start

dark light shadowbu@gmail.com
Fri Oct 9 16:10:00 GMT 2009


System: Microsoft Windows XP PRO [Version 5.1.2600]  SP3

****************************PROBLEM ************************************
ran into a situation this morning where the service would not start,
this is a fresh install.
$ cygrunsrv --start sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.
the event logs shows "The following information is part of the event:
sshd: PID 4140: starting service `' failed: redirect_fd: open (1,
/var/log/sshd.log): 13, Permission denied."
The permission for the file was set to read-only.
$ ls -l /var/log
total 108
-rw-r--r--  1 SYSTEM        root      0 Sep 30 19:19 lastlog
-rwxr-x---+ 1 Administrator Users 45610 Oct  9 03:14 setup.log
-rwxr-x---+ 1 Administrator Users 58543 Oct  9 03:14 setup.log.full
-r--r--r--  1 SYSTEM        root      0 Oct 25  2007 sshd.log
*************************************SOLUTION***************************************
Change permission to write for owner and group and the service started
without error.
george@ghana ~
$ chmod 664 /var/log/sshd.log
george@ghana ~
$ ls -l /var/log
total 108
-rw-r--r--  1 SYSTEM        root      0 Sep 30 19:19 lastlog
-rwxr-x---+ 1 Administrator Users 45610 Oct  9 03:14 setup.log
-rwxr-x---+ 1 Administrator Users 58543 Oct  9 03:14 setup.log.full
-rw-rw-r--  1 SYSTEM        root      0 Oct 25  2007 sshd.log
george@ghana ~
$ cygrunsrv --start sshd
george@ghana ~
$

Please update your documentation so others can be aware of the
permissions problem with the log file.

george
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 18234 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20091009/72222926/attachment.obj>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list