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:content-type :content-transfer-encoding:mime-version; q=dns; s=default; b=Qe7 fNbpjwvDkrXJf7nlYwDpJa0EtBuf+Mm/xhi75vdxugSxgX71TL5WPkeZzorfNOOj o7C/4uE6ddBOaZCFY7SSoYs09uFLZ9fZx1qdOwHUTcV2/vhR1n6wse//JDOXvXHu mN9rcQQ8ANHn0ZPSYS5UAmS196aEei7xU/EB1SoQ= 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:content-type :content-transfer-encoding:mime-version; s=default; bh=raPLgWRC+ gx6SsrPxHG6Fkry0Uw=; b=m00OpAsqoMWRv55ctoZfSeT9tlokU5Wdi9QFYsNqL fecmsS/uHCxMb9Yj7v+19mAqY2NphWMWl2tw13JWORZHjBsreHgSR0GDf8LbjeTB xYhl/Ia12QyuVfCRflGCMU0KW6SDvR/Gia0Z5cRxZpbyYnKuYKwGWTrB7F1RtXOr Ls= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=wor, ser, explorer, H*M:COM X-HELO: esa1.dell-outbound.iphmx.com From: X-LoopCount0: from 10.170.28.39 To: Subject: SSH Keys breaking symlink access? Date: Fri, 19 May 2017 19:26:00 +0000 Message-ID: <6d6087eef8f444edbe659c278f63ab43@AUSX13MPC128.AMER.DELL.COM> x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v4JJQMWD004904 Hello! I am running Cygwin-64, 2.8.0(0.309/5/3) on a Windows 2016 Server. This sys= tem is intended for use by a fairly wide audience of devs. We have this wor= king correctly on an old Windows 2008 box running Cygwin 1.7.9(0.237/5/3). = The new system is intended to replace the old one. I've mimicked the config= uration as much possible on the new system, but am running into an issue wi= th passwordless (key-auth) ssh. I have created a windows symlink ("mklink /d /sharename [unc_path]") in the= c:\cygwin64 directory that points to an NFS share. (This is the same as th= e old system.) I have OpenSSH configured and working. I can access "/sharename" within explorer (c:\cygwin64\sharename\) and loca= lly from within the Cygwin prompt (/sharename), when logged in as either th= e service account or my own domain account. If I ssh into the system using password authentication, I am able to "ls /s= harename" regardless of which account I use, in either interactive mode or = not. If I copy ~/.ssh/ to the server for the service account, I can get into /sh= arename. But if I copy ~/.ssh/ for my own domain account, I cannot. I get a "permiss= ion denied" error when attempting to cd to /sharename or do an ls of it. Th= is is true whether I ssh into the system interactively, or execute the comm= and remotely / non-interactively. On the old system, "ls -la /" shows the link owned by the service account u= ser. On the new system, it was initially owned by "Administrators" but I ch= anged it to match. This did not change behavior. I've diffed the other Cygw= in config files and except for a couple minor tweaks due to the newer Cygwi= n version, there are no differences. /var/log/sshd.log shows nothing. Any help or troubleshooting tips would be appreciated. I'm not so hot as a = Windows admin - without dmesg or a syslog, I'm kind of at a loss. I don't really understand why ssh key auth would interfere with file system or network access in this way. Regards, Dave P. -- 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