X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=IpNsPvSP9uxNbK45phu98I5SHkwC5 qkwe7UzAPeElZHhHmzU3qs9u2K2/2JInGJLoZ4tF5KujSasux4h0frGBl+y8KBwB 7SBzw8k7xA3FBBpq6GJ7evZiw0wTTpzg6mkfLF3h/tDi3hgcyD6fx3UuYSpmk5DQ xSHUrln8qci+wQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=tfNOlYsxeJo4fdRR9MdWqmQ03E8=; b=FE8 sceTtjGgSAUix2jIbwaF57zt/zeZTibOFkRPhiLRU8ktwmO+NlMMMyxwaq5XDhyu JjRIAAZh/bfUo+kC7b+BPdMZc8lGcjlFZJ2lmvzBvqRWjHWZr7GSwJIcuGa2QZ36 SnaqkwL9j+zPKxEPYtLM+EjBzUe9+06uyfoiCUtU= 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,KAM_ASCII_DIVIDERS,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=HX-Languages-Length:1628, password X-HELO: EUR04-DB3-obe.outbound.protection.outlook.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clarizen.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hLLy4sPGMxXwEbp50WLEMgDoxvj2eQPR4mJsdqmY3x0=; b=UayvexSwtAW5cSwSxHpIS8cOlcKmVyn6EyGijEDVZcq38BJEJ4ncwdw/DJB53EQGjcVqjDlvsC7rkLRXReusd4i143s8Z4Zzi0k1jNSFBx35S4lLQ4Lcr126fBDecjq5ymrIs2Wwl6RkK6P5F6XbOwnSMvp9+q5Y7qH+SuvChNw= From: Maayan Apelboim To: "cygwin AT cygwin DOT com" Subject: RE: can't access remote shares when using ssh with rsa key - passwd -R / set(e)uid / LogonUser is not working as expected Date: Thu, 14 Mar 2019 10:41:21 +0000 Message-ID: References: <20190313090418 DOT GT3785 AT calimero DOT vinschen DOT de> In-Reply-To: <20190313090418.GT3785@calimero.vinschen.de> received-spf: None (protection.outlook.com: clarizen.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Maayan DOT Apelboim AT clarizen DOT com; x-ms-exchange-senderadcheck: 1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id x2EAfcPC021279 When you login with stored password, Cygwin performs the same LogonUser call as if you login with password, so the same user token is generated. Off the top of my head I don't know why it shouldn't work for you. You sure you have the correct password stored? When you login and call `id', what does it print? Does it contain the "interactive" group or the "network" group? If the latter, then the internal LogonUser call performed with stored password failed for some reason. Corinna -- Corinna Vinschen Cygwin Maintainer --------------------------------------------------------------------------------------- Yes, I'm sure I used the correct password, I use it all the time and I also tried running passwd -R multiple times in case I entered it wrongly. I'm not sure what are "interactive" & "network" groups - do you mean literally groups called network & interactive? Either way - I'm always getting a group named "interactive" among other groups - either with password ssh or with RSA - never "network" I do have some different groups when running id - comparing password ssh and RSA ssh. Also, when I run mkpasswd -d when I log in with password, it generates users from the domain, comparing RSA ssh that generates only a few entries unrelated to my domain.. I think the same as you (also mentioned in the email title :) ) that the LogonUser call doesn't work as expected. Is there a way to verify it? Any logs I can check? Would it help if I'll send the different groups I'm getting? Thanks! -- 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