X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: ssh problem using publickey in domain environment
Date: Wed, 24 Feb 2010 07:44:25 -0800
Lines: 24
Message-ID: <hm3hgp$b0v$1@dough.gmane.org>
References: <096385baeda76b4b83f591937a5e50b1f5f81434@localhost>  <4B8411E4.6040400@cygwin.com> <20100224101355.GA29779@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b2pre Thunderbird/3.0
In-Reply-To: <20100224101355.GA29779@calimero.vinschen.de>
X-Stationery: 0.5.1
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 02/24/2010 02:13 AM, Corinna Vinschen wrote:
> On Feb 23 12:35, Larry Hall (Cygwin) wrote:
>> On 02/23/2010 12:01 PM, Jukka Inkeri wrote:
>>> If your server is member of domain, howto make users, sshd, (which
>>> order) ... without setuid problem when using publickey auth ? cyg_server
>>> and sshd - domain user or local or both, ???
>>
>> In order for the SSH server to switch user context to a domain user,
>> the service's user (cyg_server) must be a domain user with the rights
>> outlined in 'ssh-host-config'. I'm not sure if it's a requirement that
>> the 'sshd' user also be a domain user. I've never played with that.
>
> I added a FAQ entry lately:
>
> http://cygwin.com/faq/faq-nochunks.html#faq.using.sshd-in-domain
You might want to change that to:

$ mkpasswd -l -d your_domain>>  /etc/passwd
$ mkgroup -l -d your_domain>>  /etc/group

so as not to destroy whatever the user had in /etc/{passwd,group}.
-- 
Andrew DeFaria <http://defaria.com>
I didn't fight my way to the top of the food chain to be a vegetarian.


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

