delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/10/05/00:08:14

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Daniel Noll <daniel AT nuix DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "Unknown" user after logging into sshd under Vista
Date: Fri, 5 Oct 2007 14:05:13 +1000
User-Agent: KMail/1.9.7
References: <200710050955 DOT 20717 DOT daniel AT nuix DOT com> <4705AA7D DOT 4060804 AT cygwin DOT com>
In-Reply-To: <4705AA7D.4060804@cygwin.com>
MIME-Version: 1.0
Message-Id: <200710051405.13430.daniel@nuix.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--Boundary-00=_5fbBHtXcIL/EhJu
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Friday 05 October 2007 13:07:41 Larry Hall (Cygwin) wrote:
> OK, we now know the symptoms and the problem.  But we don't have any basic
>
> configuration information to do some simple triage with.  In short:
> > Problem reports:       http://cygwin.com/problems.html
>
> Please read and follow the above guidelines, paying particular attention to
> the part about *attaching* cygcheck output.
>
> In the absence of the above, my WAG is that the user you are logging in as
> (domain user perhaps?) is not in your '/etc/passwd' file.  See 'man passwd'
> and the Cygwin Users Guide <http://cygwin.com/cygwin-ug-net/> for more
> details.  Ditto for '/etc/group'.

Okay.

Firstly we have this little error that comes straight after running it:

> [501] daniel AT Monolith:~> cygcheck -s -v -r > cygcheck.out
> 'id' program not found
> 'id' program not found

It does then run, but it recurses forever on one of Windows' (many :-/)
recursive registry nodes.  I've attached the portion of the file before
this takes place, in the hope that the stuff which comes after won't be
needed.

/etc/passwd looks like this:

> SYSTEM:*:18:544:,S-1-5-18::
> Administrators:*:544:544:,S-1-5-32-544::
> Administrator:unused_by_nt/2000/xp:500:513:U-Monolith\Administrator,S-1-5-21-387 7142786-2852047967-4020260781-500:/home/Administrator:/bin/bash
> daniel:unused_by_nt/2000/xp:1000:513:U-Monolith\Daniel,S-1-5-21-3877142786-28520 47967-4020260781-1000:/home/daniel:/bin/bash
> Guest:unused_by_nt/2000/xp:501:513:U-Monolith\Guest,S-1-5-21-3877142786-28520479 67-4020260781-501:/home/Guest:/bin/bash
> sshd:unused_by_nt/2000/xp:1001:513:sshd privsep,U-Monolith\sshd,S-1-5-21-3877142786-2852047967-4020260781-1001:/var/empty:/bin/false
> sshd_server:unused_by_nt/2000/xp:1003:513:sshd server account,U-Monolith\sshd_server,S-1-5-21-2403187937-3420309498-450377777-1003:/var/empty:/bin/false

The 'daniel' line exists and does appear to be set to the right user,
except that my username should start with a lowercase d in there but I
tried changing that just now and it didn't make a difference.  Gotta
wonder where it got that capital letter from though, my username all
throughout Windows doesn't have it.

/etc/group has:

> root:S-1-5-32-544:0:
> SYSTEM:S-1-5-18:18:
> None:S-1-5-21-3877142786-2852047967-4020260781-513:513:
> Administrators:S-1-5-32-544:544:
> Backup Operators:S-1-5-32-551:551:
> Cryptographic Operators:S-1-5-32-569:569:
> Distributed COM Users:S-1-5-32-562:562:
> Event Log Readers:S-1-5-32-573:573:
> Guests:S-1-5-32-546:546:
> IIS_IUSRS:S-1-5-32-568:568:
> Network Configuration Operators:S-1-5-32-556:556:
> Performance Log Users:S-1-5-32-559:559:
> Performance Monitor Users:S-1-5-32-558:558:
> Power Users:S-1-5-32-547:547:
> Remote Desktop Users:S-1-5-32-555:555:
> Replicator:S-1-5-32-552:552:
> Users:S-1-5-32-545:545:

Perhaps suspiciously, I'm missing from Users.  But groups doesn't care...

> [516] daniel AT Monolith:~> groups
> None root Administrators Users

Daniel

--Boundary-00=_5fbBHtXcIL/EhJu
Content-Type: text/plain;
  charset="utf-8";
  name="trimmed.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="trimmed.out"


Cygwin Configuration Diagnostics
Current System Time: Fri Oct 05 13:51:52 2007

Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6000 

Running under WOW64 on AMD64

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\Windows\system32
	c:\Windows
	c:\Windows\System32\Wbem
	c:\Program Files (x86)\Ant\bin
	c:\Program Files (x86)\Java\jdk1.6.0_02\bin

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'daniel'
PWD = '/home/daniel'
HOME = '/home/daniel'
MAKE_MODE = 'unix'

HOMEPATH = '\Users\daniel'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Users\daniel\AppData\Roaming'
PROGRAMW6432 = 'C:\Program Files'
HOSTNAME = 'Monolith'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'AMD64 Family 15 Model 75 Stepping 2, AuthenticAMD'
WINDIR = 'C:\Windows'
VS80COMNTOOLS = 'C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\'
COMMONPROGRAMW6432 = 'C:\Program Files\Common Files'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/usr/bin'
PROGRAMDATA = 'C:\ProgramData'
USERDOMAIN = 'Monolith'
COMMONPROGRAMFILES(X86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
ANT_HOME = 'C:\Program Files (x86)\Ant'
!:: = '::\'
TEMP = '/cygdrive/c/Users/daniel/AppData/Local/Temp'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
USERNAME = 'daniel'
PROCESSOR_LEVEL = '15'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
JAVA_HOME = 'c:\Program Files (x86)\Java\jdk1.6.0_02'
EDITOR = 'vim'
USERPROFILE = 'C:\Users\daniel'
PS1 = '\033[1m[\!] \u@\h:\w> \033[0m'
LOGONSERVER = '\\MONOLITH'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\daniel\AppData\Local'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\Windows\system32\cmd.exe'
TMP = '/tmp'
SYSTEMROOT = 'C:\Windows'
PRINTER = 'Microsoft XPS Document Writer'
CVS_RSH = 'ssh'
PROCESSOR_REVISION = '4b02'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files (x86)'
NUMBER_OF_PROCESSORS = '2'
PROGRAMFILES(X86) = 'C:\Program Files (x86)'
SESSIONNAME = 'Console'
COMPUTERNAME = 'MONOLITH'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Wow6432Node\Cygnus Solutions\Cygwin\Program Options




--Boundary-00=_5fbBHtXcIL/EhJu
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--Boundary-00=_5fbBHtXcIL/EhJu--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019