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.
geo...@ghana ~
$ chmod 664 /var/log/sshd.log
geo...@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
geo...@ghana ~
$ cygrunsrv --start sshd
geo...@ghana ~
$

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

george

Attachment: cygcheck.out
Description: Binary data

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

Reply via email to