X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4BBB3858283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1707090870; bh=oxp/5O8YxOTo4pDRX/ibGpMQGLQ4U+kHb5jPEqMB9/U=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ODu0Y+muo9tMxFFvrJ9Uj4RlQjZPgch1Wu7fvgRq9KNGlPfuuKlDV3y3xobxhJqvK ikU7GszaUuCOpc+SB6XwyfSHsr8Rqc4dHq9e2rvrD6pA7yUazbUXeixoqCHV7UexHt 8F3SR8yJ+8GMywzd+iPH0ynH65ai1irGSMfPoheg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56D313858CDB ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 56D313858CDB ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707090816; cv=none; b=Dmg9P9GIv+Fw4D+TqRxp8L2e59xcwT3SbrBjMMdvJrgLPc8+wZNCFnD0lay0/rPNE2nLV2hKz/MSvYBf0wbndEAQex/RbwOpUQe5TbfmoJeTvMRMUe+09kf7uOXwnSUVXTeChJHP1G4DtN8vsVPGmszV3pazHA1PAosG7d8RfFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707090816; c=relaxed/simple; bh=08IxlZz9Tt2m3czQXFyqMABandXX7vGni/0Ruul1hZQ=; h=Message-ID:Date:MIME-Version:From:Subject:To; b=J9dRDMe+NbeOjoBKr30cVKXQaj7NWOP+QNSF404zTu4vaNj/k3SvRbkLmOXc66T/uCD/Rbtt1HYXfDR8p49jUQKug9zXHqe8bEPiUdN5IY2kQmL4ljzdUUMplIDD1B++hxeQNN9BTavg0NK5mWUOCvOZpZteBp8IkyD9jyMVsH8= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: Date: Mon, 5 Feb 2024 00:53:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Subject: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users To: cygwin AT cygwin DOT com X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Frank-Ulrich Sommer via Cygwin Reply-To: Frank-Ulrich Sommer Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 414NsW8c013765 Hi, I'm trying to run cygsshd on my PC with Windows 11 and connect from a linux machine. I have added the public key to /cygdrive/c/Users/xxx/.ssh/authorized_keys and created a symbolic link from  /cygdrive/c/Users/xxx/.ssh to /home/xxx/.ssh. As usual I checked the access rights and mode of the .ssh directory (700 and belongs to user xxx) and the authorized_keys file (600 and also belongs to user xxx) and also of the home directory (had to change ownership). Now I get the following strange messages: [...] Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: temporarily_use_uid: 197609/197121 (e=18/18) Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: trying public key file /home/xxx/.ssh/authorized_keys Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: fd 5 clearing O_NONBLOCK Feb  5 00:35:50 XXXXX sshd: PID 2798: Authentication refused: bad ownership or modes for directory /cygdrive/c/Users Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: restore_uid: 18/18 [...] Why is cygsshd complaining about the Windows "Users" directory and not about the directory of user xxx (/cygdrive/c/Users/xxx)? And how can I solve this? Frank -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple