public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Unknown+User and Unknown+Group when using ls via ssh
Date: Thu, 18 Feb 2016 10:31:00 -0000	[thread overview]
Message-ID: <20160218103114.GA8575@calimero.vinschen.de> (raw)
In-Reply-To: <14C42154-42E2-4C1A-86DA-B39CA5205F01@momento.com.au>

[-- Attachment #1: Type: text/plain, Size: 2688 bytes --]

On Feb 18 17:17, James Whitwell wrote:
> Hi,
> 
> We’re having some trouble when logged in via ssh that we don’t 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.
> 
> The problem we’re having seems to be with usernames and groups.  When
> we’re logged in directly, it works perfectly e.g.
> 
> 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 Information/
> 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:$
> 
> But when I ssh to the machine and try the same commands, I get
> “Unknown+User” and “Unknown+Group” from “ls”, and can’t “cd PDF” e.g.
> 
> 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 Information/
> 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:$
> 
> I’ve tried strace on the ls via ssh (attached) but can’t 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((null)) 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

      reply	other threads:[~2016-02-18 10:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18  6:17 James Whitwell
2016-02-18 10:31 ` Corinna Vinschen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160218103114.GA8575@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).