From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13654 invoked by alias); 14 Feb 2013 22:07:52 -0000 Received: (qmail 13629 invoked by uid 22791); 14 Feb 2013 22:07:50 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_NEUTRAL,TW_PG X-Spam-Check-By: sourceware.org Received: from bureau85.ns.utoronto.ca (HELO bureau85.ns.utoronto.ca) (128.100.132.185) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Feb 2013 22:07:44 +0000 Received: from [142.1.102.176] (dhcphost-ic176.utsc.utoronto.ca [142.1.102.176]) (authenticated bits=0) by bureau85.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id r1EM7fGv020870 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 14 Feb 2013 17:07:43 -0500 Message-ID: <511D602E.805@cs.utoronto.ca> Date: Thu, 14 Feb 2013 22:07:00 -0000 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: sshd fails to start: logon failure References: <511D4C70.30508@cs.utoronto.ca> <511D4EA8.1060202@gmail.com> <511D50FA.9010304@cs.utoronto.ca> <511D54D3.4070300@cygwin.com> In-Reply-To: <511D54D3.4070300@cygwin.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2013-02/txt/msg00184.txt.bz2 On 14/02/2013 4:19 PM, Larry Hall (Cygwin) wrote: > On 2/14/2013 4:02 PM, Ryan Johnson wrote: >> On 14/02/2013 3:52 PM, marco atzeri wrote: >>> On 2/14/2013 9:43 PM, Ryan Johnson wrote: >>>> Hi all, >>>> >>>> I tried to ssh to my cygwin box today and was unable to connect. It >>>> seems the sshd service can no longer run, for reasons that mystify me: >>>>> # net start sshd >>>>> System error 1069 has occurred. >>>>> >>>>> The service did not start due to a logon failure. >>>> >>>> I wasn't aware of having changed anything; would it be advisable to >>>> just >>>> reinstall sshd from setup.exe and/or sshd_host_config, or is there >>>> some >>>> simple troubleshooting I might do? >>> >>> reinstall is not the way. >>> Likely something reset the cyg_server privileges. >>> Try to re-enable them with >>> >>> editrights -u cyg_server -a SeAssignPrimaryTokenPrivilege >>> editrights -u cyg_server -a SeCreateTokenPrivilege >>> editrights -u cyg_server -a SeTcbPrivilege >>> editrights -u cyg_server -a SeServiceLogonRight >>> editrights -u cyg_server -a SeIncreaseQuotaPrivilege >> No luck, the same error still occurs. However, now that you mention >> it, I >> did play with cygserver settings while trying to install pgsql a >> while back. >> >> Is there a way to view the privileges to see what I may have broken? > > $ editrights -u cyg_server -l > SeAssignPrimaryTokenPrivilege > SeCreateTokenPrivilege > SeTcbPrivilege > SeServiceLogonRight > SeDenyRemoteInteractiveLogonRight Mine has all those, plus SeIncreaseQuotaPrivilege (possibly thanks to the above from Marco). It seems that I managed to de-configure sshd somehow. There's no sshd_config in /etc/ (just the skeleton in /etc/defaults/), and sshd-host-config doesn't seem to exist, either. So, I blew away the sshd and cygrunsrv services and their associated users and re-ran ssh-host-config. All is well now... except that now an enormous ascii art hippo greets me at login. Ick. Thanks, Ryan -- 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