X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.9 required=5.0 tests=AWL,BAYES_20,BOTNET,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Message-id: <50BBBD5B.9010101@cygwin.com> Date: Sun, 02 Dec 2012 15:43:07 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Where can I find the official cygwin openssh documentation? References: <20121202174518 DOT GA9538 AT ednor DOT casa DOT cgf DOT cx> <20121202194313 DOT GT67410 AT justpickone DOT org> In-reply-to: <20121202194313.GT67410@justpickone.org> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 12/2/2012 2:43 PM, David T-G wrote: > Christopher, et al -- > > ...and then Christopher Faylor said... > % > % On Sun, Dec 02, 2012 at 11:50:08AM -0500, Mike Richardson wrote: > % >I'm trying to set up an openssh server on Windows using cygwin. I > ... > % > % The "recommended" procedure is to follow the defaults when running those > % scripts unless you have specific needs which require something > % different. > > I don't know that I need anything different, but I've had trouble with > sshd ever since Vista. I'm still nailing down the details for a proper > trouble report, but I'm currently wrestling with a Win 7 laptop and have > only gotten as far as running as my privileged "root" account -- which > means I can only log in as root rather than switching. If you're having trouble with switching the user context, it sounds to me like you're running 'sshd' as 'root' and that's not going to allow you to change user context by default. Details on what's happening in Windows to permit this can be found in the Users Guide here: So, you're left with 2 choices: 1. Rework the permissions of your 'root' user to match that of XP's 'SYSTEM' user or the 'cyg_server' user that gets created when you run 'ssh-host-config' on post XP OSs plus change all the ownerships and permissions on various files and directories that 'sshd' accesses to be either 'SYSTEM' or 'cyg_server' (see 'ssh-host-config' for details). 2. Just blow away your installation, reinstall, and run 'ssh-host-config' and, optionally, 'ssh-user-config', to get things set up properly. Either should work, though (1) opens a potential security risk by creating another user on the system with elevated rights. It also requires you to understand and configure more yourself. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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