From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86230 invoked by alias); 18 Feb 2016 10:31:21 -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 86213 invoked by uid 89); 18 Feb 2016 10:31:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-93.9 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=vault, 42223, ls, samba X-HELO: calimero.vinschen.de Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Feb 2016 10:31:17 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 34F1FA803FA; Thu, 18 Feb 2016 11:31:14 +0100 (CET) Date: Thu, 18 Feb 2016 10:31:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Unknown+User and Unknown+Group when using ls via ssh Message-ID: <20160218103114.GA8575@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <14C42154-42E2-4C1A-86DA-B39CA5205F01@momento.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <14C42154-42E2-4C1A-86DA-B39CA5205F01@momento.com.au> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-02/txt/msg00284.txt.bz2 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2744 On Feb 18 17:17, James Whitwell wrote: > Hi, >=20 > We=E2=80=99re having some trouble when logged in via ssh that we don=E2= =80=99t have > when we log in directly (in our case RDP to the server, then start > bash from the Windows desktop). Our environment is Windows Server > 2008 R2 64-bit joined to a Samba domain, running Cygwin 2.4.1 64-bit. >=20 > The problem we=E2=80=99re having seems to be with usernames and groups. = When > we=E2=80=99re logged in directly, it works perfectly e.g. >=20 > WORKFLOW3:jams:~:$ cd /cygdrive/e > WORKFLOW3:jams:/cygdrive/e:$ ls -l > total 12 > dr-xr-x---+ 1 jams Domain Users 0 Feb 18 10:36 $RECYCLE.BIN/ > drwxrwx---+ 1 wfcron Domain Users 0 Sep 23 14:13 PDF/ > drwxr-x--- 1 Unknown+User Unknown+Group 0 Mar 7 2015 System Volume Inf= ormation/ > drwxrwx---+ 1 wfcron Domain Users 0 Sep 7 10:30 Vault/ > WORKFLOW3:jams:/cygdrive/e:$ cd PDF > WORKFLOW3:jams:/cygdrive/e/PDF:$ ls -l > total 29696 > -rwxrwx---+ 1 wfcron Domain Users 0 Feb 18 17:09 from-cron* > drwxrwx---+ 1 wfcron Domain Users 0 Feb 18 11:15 pdf/ > WORKFLOW3:jams:/cygdrive/e/PDF:$ >=20 > But when I ssh to the machine and try the same commands, I get > =E2=80=9CUnknown+User=E2=80=9D and =E2=80=9CUnknown+Group=E2=80=9D from = =E2=80=9Cls=E2=80=9D, and can=E2=80=99t =E2=80=9Ccd PDF=E2=80=9D e.g. >=20 > WORKFLOW3:jams:~:$ cd /cygdrive/e > WORKFLOW3:jams:/cygdrive/e:$ ls -l > total 4 > dr-xr-x---+ 1 jams Domain Users 0 Feb 18 10:36 $RECYCLE.BIN/ > drwxr-x--- 1 Unknown+User Unknown+Group 0 Sep 23 14:13 PDF/ > drwxr-x--- 1 Unknown+User Unknown+Group 0 Mar 7 2015 System Volume Inf= ormation/ > drwxr-x--- 1 Unknown+User Unknown+Group 0 Sep 7 10:30 Vault/ > WORKFLOW3:jams:/cygdrive/e:$ cd PDF > -bash: cd: PDF: Permission denied > WORKFLOW3:jams:/cygdrive/e:$ >=20 > I=E2=80=99ve tried strace on the ls via ssh (attached) but can=E2=80=99t = see anything > obvious failing in it. I tried this myself and can't reproduce it in my (granted: very tiny) AD environment. But there's an obvious problem in the strace: 13138 42223 [ldap_init] ls 6764 cyg_ldap::connect_non_ssl: ldap_bind((n= ull)) 0x51 So ldap_bind returns with error code 0x51 which is LDAP_SERVER_DOWN. Assuming the server is not really down, the error code means the caller cannot connect to the LDAP server for one reason or the other. This reason is not visible from the strace and it might be necessary to hunt this down locally. Note that error 0x51 really means contacting the server fails. It's not an authentication problem or something like that. HTH, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWxZ1yAAoJEPU2Bp2uRE+gvZIQAJ38HjkMZVt65tTg1WiaQmmg FqOOMpPVuX38SF1Qx2jxzeH/EkirtJesf6pPTlD/ontoSS/sLZsnWiRdApdh8l4c mFaQUmAEioUT2PAhq6GIBPOVVdDWdWE83hLx4Shumfo/FogMmdSIWyJQM+IwVfDh HKCZ/EG+irC9nHlsCNFKJG3/qHDql2j1o5KM1CH4CXQL4IRB/G/RT+immOTMf89I +jZcBUcPNz0naIkMPcrae9zQBKZDm2mtkzIJk1yCio8HqlSFOz5Jd8xd0c7Vrbee 62nZPiMuVKI2gyl9cnvmxfQEwLVx6mP914tuu2hoY5/hl8OPsJQF8vaZnOj8BE+u yfKnTCyIW1vctmkIjcgUGaf2LJYgsy7UzedighApASQC9tyWQYFEBCQjoCEZlkkA Ujhc8d3LOGBArkqyNas7PJHdDPvMw9qa+gx1jstBcDJWjRHj1pQQ3zqikle6MfTE XITfp5H8Iut1vuX6fXOxMsFSc2a1ejNH6/G1mK/uTOvnkuMp4YoT2w1x2AUiWpnl wD3nZyEXgkKy1fxUGXIosF6ickvfE8RvGbaOaiY8ENSbsskgp04bwpCwMucIQFJ/ rdDc2ZotZK/6KCMoAT19egVEFGQdYWfclmBYBgvUK1N3eIWdMHJRDpiKVc2WFYjA mLOkkkj/ddShwYj4gkZE =g+gQ -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--