From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15822 invoked by alias); 19 May 2017 19:26:08 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15806 invoked by uid 89); 19 May 2017 19:26:07 -0000 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 Received: from Unknown (HELO esa1.dell-outbound.iphmx.com) (68.232.153.90) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 May 2017 19:26:06 +0000 Received: from esa5.dell-outbound2.iphmx.com ([68.232.153.203]) by esa1.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 May 2017 14:16:03 -0500 From: Received: from ausc60pc101.us.dell.com ([143.166.85.206]) by esa5.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 May 2017 01:17:54 +0600 X-LoopCount0: from 10.170.28.39 To: Subject: SSH Keys breaking symlink access? Date: Fri, 19 May 2017 20:51:00 -0000 Message-ID: <6d6087eef8f444edbe659c278f63ab43@AUSX13MPC128.AMER.DELL.COM> x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2017-05/txt/msg00321.txt.bz2 Hello! I am running Cygwin-64, 2.8.0(0.309/5/3) on a Windows 2016 Server. This sys= =3D tem is intended for use by a fairly wide audience of devs. We have this= wor=3D king correctly on an old Windows 2008 box running Cygwin 1.7.9(0.23= 7/5/3). =3D The new system is intended to replace the old one. I've mimicke= d the config=3D uration as much possible on the new system, but am running = into an issue wi=3D th passwordless (key-auth) ssh. I have created a windows symlink ("mklink /d /sharename [unc_path]") in the= =3D c:\cygwin64 directory that points to an NFS share. (This is the same as th= =3D e old system.) I have OpenSSH configured and working. I can access "/sharename" within explorer (c:\cygwin64\sharename\) and loca= =3D lly from within the Cygwin prompt (/sharename), when logged in as eithe= r th=3D e service account or my own domain account. If I ssh into the system using password authentication, I am able to "ls /s= =3D harename" regardless of which account I use, in either interactive mode= or =3D not. If I copy ~/.ssh/ to the server for the service account, I can get into /sh= =3D arename. But if I copy ~/.ssh/ for my own domain account, I cannot. I get a "permiss= =3D ion denied" error when attempting to cd to /sharename or do an ls of it= . Th=3D is is true whether I ssh into the system interactively, or execute = the comm=3D and remotely / non-interactively. On the old system, "ls -la /" shows the link owned by the service account u= =3D ser. On the new system, it was initially owned by "Administrators" but = I ch=3D anged it to match. This did not change behavior. I've diffed the ot= her Cygw=3D in config files and except for a couple minor tweaks due to the= newer Cygwi=3D 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 = =3D 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 n= etwork 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