delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/02/15:43:37

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-list-only-lh AT cygwin DOT com>
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: <CAARFOs-gsLkrPcBBYyJyZcfOwzci8fVLZbUCWXWdAhvgQ_8++A AT mail DOT gmail DOT com> <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>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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:

<http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019