Cygwin Win32 Error 1062
Contents |
one solution for sshd/cygrunsrv win32 error 1062 From: Evers Ding
/var/empty Must Be Owned By Root And Not Group Or World-writable.
Process Id = 0x740 : starting service `l' failed: redirect_fd: open (1, /var/log/sshd.log): 13, Permission denied. So it appeared (after browsing the source code) that cygrunsrv's function redirect_fd() was encountering an error attempting to open a file descriptor for /var/log/sshd.log.... Browsing through all the perm bits didn't show any obvious issues (all dirs 755, and sshd.log owned and rw by SYSTEM), and I spent a number of hours reading posts in the archives to no avail. Finally, I tried to look at it from a WinNT admin perspective and instead of using bash/Cygwin, checked permissions via Windows Explorer. Nothing obvious here.... but just for the sake of experiment, I used the "properties | Security" dialogue to explicitly add Full Control for the SYSTEM user to: C:\Cygwin C:\Cygwin\var C:\Cygwin\var\log IT WORKED! I can now successfully start up sshd as a service. I haven't seen this approach in the archive, so I figured I'd contribute my $0.02. - Evers ===== ----- Evers J. Ding evers@dinghome.net __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ Follow-Ups: Re: one solution for sshd/cygrunsrv win32 error 1062 From: Larry Hall (RFK Partners, Inc) Index Nav: [DateIndex
"Win32 error 1062" starting sshd with "cygrunsrv -S" with openssh-4.5p1-1. Suggestions, please? From: "Larry Hall (Cygwin)"
Controlservice
Date: Thu, 09 Nov 2006 13:39:45 -0500 Subject: Re: Still seeing queryservicestatusex "Win32 error 1062" starting sshd with "cygrunsrv -S" with openssh-4.5p1-1. Suggestions, please? References:
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more http://stackoverflow.com/questions/17736096/unable-to-start-cygwin-sshd-service about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow https://fixerrors.wordpress.com/2009/01/28/cygrunsrv-error-starting-a-service-queryservicestatus-win32-error-1062/ is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unable to start cygwin sshd service up vote 24 down vote favorite win32 error 8 I entered ssh-host-config into the cygwin prompt (started with admin privileges), said yes to privilege separation, new local account sshd, install sshd as a service; I entered no value for CYGWIN for daemon; I entered no for using a different name; yes for creating new privilege user account. In my services.msc I am unable to start the service: The CYGWIN sshd service on Local Computer started and then stopped. win32 error 1062 Some services stop automatically if they are not in use by other services or programs. In the cygwin prompt, net start sshd produces: The CYGWIN sshd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534 In the cygwin prompt, cygrunsrv -S sshd produces: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. My /var/log/sshd.log says the following: Unable to initialize device PRN I've searched the questions on SO related to this issue, as well as the general Internet, and I guess what makes my question unique has to do with the sshd.log. I can't find anyone else who has received this. I'm doing this to install Hadoop on my Windows. I cannot run a virtual machine on this slow computer as everything just bogs down. hadoop cygwin sshd share|improve this question asked Jul 19 '13 at 0:10 Matthew Moisen 2,21993678 I have exactly same problem in windows 7. I've followed various link but the problem still exists. Some of the links I've followed are: ebiquity.umbc.edu/Tutorials/Hadoop/00%20-%20Intro.html, gist.github.com/tariqmislam/2159173. Anybody reading this kindly provide a solution. –Balwant Chauhan Sep 3 '13 at 12:34 add a comment| 5 Answers 5
permission denied access to /cgi-bin/denied self signed certificateerror Shibboleth Show server name on logonscreen subversion: unable to open an ra_local session tourl svn: commit failed … permissiondenied Unspecified error (MS Visual DatabaseTools) webdav webdav permission denied(403) Archives February 2010 December 2009 October 2009 September 2009 August 2009 July 2009 June 2009 May 2009 April 2009 January 2009 December 2008 November 2008 October 2008 September 2008 Categories SQL server (1) Uncategorized (45) Blogroll WordPress.com WordPress.org Meta Register Log in XFN WordPress.com « windows could not beactivated Access Denied (ObjectExplorer) » cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error1062: January 28, 2009 $ cygrunsrv.exe -S sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Cannot start sshd. $ cygrunsrv.exe -I sshd -path /usr/sbin/sshd.exe cygrunsrv: Error installing a service: OpenSCManager: Win32 error 5: Access is denied. People seem to suggest permission problems. I haven't solved the problem yet. Like this:Like Loading... Related This entry was posted on January 28, 2009 at 7:43 pm and is filed under Uncategorized. 7 Responses to "cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error1062:" smugllama Says: January 23, 2010 at 1:30 am I think the user account you are logging on as does not have permissions to install new services (Even though my user account is a member of the Administrators group) I ran into this problem on a Windows 2008 system and wasted a bunch of time trying to figure out how to grant myself that permission. I gave up on that route and was able to solve it by right-clicking on the shortcut for starting the Command Prompt and selecting "Run as Administrator". I imagine you could also solve this by actually logging on as the Administrator account. Reply elcano Says: October 15, 2011 at 1:30 pm Hy, I am using Windows x64 ServicePack 1, and cygwin-rsyncd-2.6.8_0. It works using "Run as Admin" Thanks. Reply Rauni Says: October 18, 2011 at 9:38 am Thanks, this helped! Reply Tom Says: September 27, 2010 at 8:07 pm I tried running a service -- rsync in my case -- as a member of the Administrative group. The batch file faile